Skeleton issue: A Reference
can have an items
Property (ManifestRef, CollectionRef)
#226
Labels
bug
Something isn't working
According to the validation schema, a
Reference
cannot haveitems
:https://github.com/IIIF/presentation-validator/blob/main/schema/iiif_3_0.json#L103
This ensures many things such as Manifests not getting embedded in Collections.
Expected behaviour:
An error is thrown if an instance of a Reference is passed
items
oritems
is dropped when this is attempted.Observed behaviour:
If
items
is passed, it is kept. For instance, if you usemake_manifest()
and pass a full manifest, the manifest gets embedded on the collection. For example:Potential bug location(s):
I'm sure the
Extras.allow
is the problem:https://github.com/iiif-prezi/iiif-prezi3/blob/main/iiif_prezi3/skeleton.py#L425-L428
Any other comments:
If this is difficult to handle in the schema and skeleton, maybe we could just make a concerted effort to handle this in helpers and with tests.
The text was updated successfully, but these errors were encountered: