presentation-validator
presentation-validator copied to clipboard
Validation error even if it seems ok
I'm still getting the following error while my manifest seems ok:
Validation Error: sc:Canvas['label'] not present and required
It only returns one sequence with a single canvas which actually contains a label.
Below the canvas I'm trying to validate:
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@type": "sc:Manifest",
"@id": "http://localhost:8079/api/presentation/7d338e96-66c3-4f8a-95da-3b512a66bd87/manifest",
"label": "linly_simplifiee",
"metadata": [
{
"label": "altLanguage",
"value": "eng"
}
],
"sequences": [
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://localhost:8079/api/presentation/7d338e96-66c3-4f8a-95da-3b512a66bd87/sequence/default",
"@type": "sc:Sequence",
"label": "default",
"canvases": [
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://localhost:8079/api/presentation/7d338e96-66c3-4f8a-95da-3b512a66bd87/canvas/539f068a-1591-42e2-9583-1c3017e2875a",
"@type": "sc:Canvas",
"label": "linly_1160-6398_1872_num_18_1_C_0001_0000",
"thumbnail": [
{
"@id": "http://localhost:8079/api/image/539f068a-1591-42e2-9583-1c3017e2875a/full/100,/0/default.png",
"@type": "dctypes:Image",
"service": [
{
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "http://localhost:8079/api/image/539f068a-1591-42e2-9583-1c3017e2875a",
"profile": [
{
"formats": [
"jpg",
"png"
],
"qualities": [
"default"
],
"@id": "http://iiif.io/api/image/2/level1.json",
"supports": [
"regionByPx",
"sizeByW",
"sizeByH",
"sizeByPct",
"baseUriRedirect",
"cors",
"jsonldMediaType"
]
}
],
"protocol": "http://iiif.io/api/image"
}
],
"format": {
"primaryType": "image",
"subType": "png",
"extensions": [
"png"
],
"typeName": "image/png"
}
}
],
"images": [
{
"@type": "oa:Annotation",
"motivation": "sc:painting",
"resource": {
"@id": "http://localhost:8079/api/image/539f068a-1591-42e2-9583-1c3017e2875a/full/1000,/0/default.png",
"@type": "dctypes:Image",
"service": [
{
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "http://localhost:8079/api/image/539f068a-1591-42e2-9583-1c3017e2875a",
"profile": [
{
"formats": [
"jpg",
"png"
],
"qualities": [
"default"
],
"@id": "http://iiif.io/api/image/2/level1.json",
"supports": [
"regionByPx",
"sizeByW",
"sizeByH",
"sizeByPct",
"baseUriRedirect",
"cors",
"jsonldMediaType"
]
}
],
"protocol": "http://iiif.io/api/image"
}
],
"format": {
"primaryType": "image",
"subType": "png",
"extensions": [
"png"
],
"typeName": "image/png"
}
},
"on": {
"@id": "http://localhost:8079/api/presentation/7d338e96-66c3-4f8a-95da-3b512a66bd87/canvas/539f068a-1591-42e2-9583-1c3017e2875a",
"@type": "sc:Canvas"
}
}
],
"otherContent": [
{
"@id": "http://localhost:8079/api/presentation/7d338e96-66c3-4f8a-95da-3b512a66bd87/list/default",
"@type": "sc:AnnotationList",
"label": "default"
}
],
"width": 150,
"height": 100
}
]
}
]
}