Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation error even if it seems ok #72

Open
Adri-7 opened this issue May 27, 2019 · 0 comments
Open

Validation error even if it seems ok #72

Adri-7 opened this issue May 27, 2019 · 0 comments

Comments

@Adri-7
Copy link

Adri-7 commented May 27, 2019

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
                }
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant