Skip to content

Commit

Permalink
Fix JSON Schema for item_assets
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Aug 8, 2024
1 parent daa9baa commit 4016c79
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions collection-spec/json-schema/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,40 +132,42 @@
"$ref": "../../item-spec/json-schema/item.json#/definitions/assets"
},
"item_assets": {
"allOf": [
{
"type": "object",
"minProperties": 2,
"properties": {
"href": {
"title": "Disallow href",
"not": {}
},
"title": {
"title": "Asset title",
"type": "string"
},
"description": {
"title": "Asset description",
"type": "string"
},
"type": {
"title": "Asset type",
"type": "string"
},
"roles": {
"title": "Asset roles",
"type": "array",
"items": {
"additionalProperties": {
"allOf": [
{
"type": "object",
"minProperties": 2,
"properties": {
"href": {
"title": "Disallow href",
"not": {}
},
"title": {
"title": "Asset title",
"type": "string"
},
"description": {
"title": "Asset description",
"type": "string"
},
"type": {
"title": "Asset type",
"type": "string"
},
"roles": {
"title": "Asset roles",
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"$ref": "../../item-spec/json-schema/common.json"
}
},
{
"$ref": "../../item-spec/json-schema/common.json"
}
]
]
}
},
"links": {
"$ref": "../../item-spec/json-schema/item.json#/definitions/links"
Expand Down

0 comments on commit 4016c79

Please sign in to comment.