Skip to content

Commit

Permalink
FEAT: PAR ID refs in api and schema (#53)
Browse files Browse the repository at this point in the history
* FEAT: PAR ID refs in FormatFamily arrays

- changed BusinessRule.formatFamilies and FormatFamily.formatFamilies in `api/par-api.yaml`;
- added missing formatFamilies property FormatFamily in `schema/types.json`; and
- changed BusinessRule.formatFamilies in `schema/business-rule.json`.

* FIX: Update examples repo.
  • Loading branch information
carlwilson authored Sep 8, 2022
1 parent 9673614 commit bda1b11
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "examples"]
path = examples
url = https://github.com/JiscRDSS/rdss-par-examples.git
url = https://github.com/openpreserve/par-examples.git
4 changes: 2 additions & 2 deletions api/par-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ definitions:
type: string
formatFamilies:
items:
$ref: '#/definitions/FormatFamily'
$ref: '#/definitions/ParIdentifier'
type: array
formats:
items:
Expand Down Expand Up @@ -251,7 +251,7 @@ definitions:
type: array
formatFamilies:
items:
$ref: '#/definitions/FormatFamily'
$ref: '#/definitions/ParIdentifier'
type: array
id:
$ref: '#/definitions/ParIdentifier'
Expand Down
2 changes: 1 addition & 1 deletion examples
Submodule examples updated 3 files
+4 −2 br-1.json
+0 −5 br-2.json
+6 −54 br-3.json
2 changes: 1 addition & 1 deletion schema/business-rule.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"formatFamilies": {
"description": "A list of format families that this Business Rule should be applied to",
"items": {
"$ref": "http://www.parcore.org/schema/types.json/#/definitions/formatFamily"
"$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier"
},
"type": "array"
},
Expand Down
6 changes: 6 additions & 0 deletions schema/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
},
"type": "array"
},
"formatFamilies": {
"items": {
"$ref": "#/definitions/parIdentifier"
},
"type": "array"
},
"identifier": {
"$ref": "#/definitions/parIdentifier"
}
Expand Down

0 comments on commit bda1b11

Please sign in to comment.