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

V3 manifest: improve specificity, validation and tests #22

Merged
merged 4 commits into from
Jul 28, 2017

Conversation

ndushay
Copy link

@ndushay ndushay commented Jul 17, 2017

connects to #6

This is now merge-able. These changes should not adversely affect purl code (as there are tests validating manifest building specifically akin to our purl code). I'm not sure this is so complex as to require multiple reviewers, so if you're comfortable with it, feel free to merge it.

I have relaxed the v3 documented spec requirements that won't work with UV. I did this as a separate commit.

The IIIF v3 requirement to use 'items' is documented in #27 and in sul-dlss/purl/issues/167.

@ndushay ndushay changed the title V3 manifest tests V3 manifest: improve specificity, validation and tests Jul 17, 2017
@ndushay ndushay force-pushed the v3-manifest-tests branch 2 times, most recently from afa6dd9 to a596828 Compare July 17, 2017 23:12
@ndushay ndushay changed the base branch from development to v3-viewing-hint-validation July 17, 2017 23:12
@ndushay ndushay force-pushed the v3-manifest-tests branch from a596828 to 253c932 Compare July 17, 2017 23:28
@ndushay ndushay force-pushed the v3-viewing-hint-validation branch from 8a58402 to f863882 Compare July 18, 2017 00:18
@ndushay ndushay changed the base branch from v3-viewing-hint-validation to development July 18, 2017 00:25
@ndushay ndushay force-pushed the v3-manifest-tests branch 2 times, most recently from d42f5a3 to 839ae31 Compare July 18, 2017 06:13
@ndushay ndushay changed the title V3 manifest: improve specificity, validation and tests [WIP] V3 manifest: improve specificity, validation and tests Jul 18, 2017
@ndushay ndushay force-pushed the v3-manifest-tests branch 3 times, most recently from 71081a5 to 7239741 Compare July 20, 2017 06:30
@ndushay ndushay changed the title [WIP] V3 manifest: improve specificity, validation and tests V3 manifest: improve specificity, validation and tests Jul 20, 2017
@ndushay ndushay changed the title V3 manifest: improve specificity, validation and tests [WIP] V3 manifest: improve specificity, validation and tests Jul 20, 2017
@ndushay ndushay force-pushed the v3-manifest-tests branch from 7239741 to 314c79e Compare July 28, 2017 00:27
@ndushay ndushay changed the title [WIP] V3 manifest: improve specificity, validation and tests V3 manifest: improve specificity, validation and tests Jul 28, 2017
subject['items'] = [seq]
subject['id'] = manifest_id
subject.label = 'Book 1'
expect { subject.validate }.not_to raise_error

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about having one test where there is a single sequence with no "label"? Or does that already exist elsewhere?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a single sequence without a label is allowed. Labels are only required if there are multiple sequences.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, my point is that we should have a test that has a single sequence without a label. To make sure our code does not always require labels.

@tingulfsen tingulfsen merged commit 3547c2c into development Jul 28, 2017
@tingulfsen tingulfsen deleted the v3-manifest-tests branch July 28, 2017 19:57
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

Successfully merging this pull request may close these issues.

2 participants