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

Strict mode #3

Open
stephenwf opened this issue Apr 7, 2022 · 1 comment
Open

Strict mode #3

stephenwf opened this issue Apr 7, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@stephenwf
Copy link
Member

At the moment Presentation 3 is "strict" and does not check for small incompatibilities. This is especially true for traversing resources, where Presentation 2 allowed non-array items and Presentation 3 requires an array. Few ways we could do this.

We could have it part of the configuration for the vault:

const vault = new Vault({ strict: true });

Or as it's own bundle (if it's bigger/smaller):

import { Vault } from '@iiif/vault/strict';

Mentioned by @mathewjordan

more community oriented tools wanting to be less strict, while internal tools needing to be more so.

To hopefully allow vault to be used in both situations - without encouraging incorrect IIIF for implementors.

@stephenwf stephenwf added the enhancement New feature or request label Apr 7, 2022
@stephenwf
Copy link
Member Author

@mathewjordan First step of this is done in the parser: IIIF-Commons/parser#17

@stephenwf stephenwf mentioned this issue Aug 2, 2022
3 tasks
@stephenwf stephenwf transferred this issue from IIIF-Commons/vault Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant