Fix metadata schema (#704)

This commit is contained in:
Suzana Dirla 2018-10-11 17:24:44 +03:00 committed by Denys Vuika
parent 9fd0a22b68
commit 20822773d7
2 changed files with 20 additions and 5 deletions

View File

@ -344,11 +344,7 @@
{ {
"description": "Content metadata's one layout group definition", "description": "Content metadata's one layout group definition",
"type": "object", "type": "object",
"required": [ "required": ["id"],
"id",
"title",
"items"
],
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
@ -452,6 +448,23 @@
"type": "array" "type": "array"
} }
} }
},
{
"type": "object",
"required": [
"id",
"disabled"
],
"properties": {
"id": {
"description": "Unique identifier",
"type": "string"
},
"disabled": {
"description": "Toggles disabled state",
"type": "boolean"
}
}
} }
] ]
} }

View File

@ -46,7 +46,9 @@
] ]
}, },
{ {
"id": "app.content.metadata.kitten-images",
"kitten-images": { "kitten-images": {
"id": "app.content.metadata.kittenAspect",
"custom:aspect": "*", "custom:aspect": "*",
"exif:exif": [ "exif:pixelXDimension", "exif:pixelYDimension"] "exif:exif": [ "exif:pixelXDimension", "exif:pixelYDimension"]
} }