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

Use latest json-schema draft in tests by default #359

Merged
merged 1 commit into from
Sep 29, 2016

Conversation

iainbeeston
Copy link
Contributor

Lots of core tests were explicitly using draft-03, which works slightly
differently to the latest (draft-04 as I write this). I've rewritten
them to not specify the schema version at all, so they default to using
the latest.

To me this feels safer, as (unless explicitly specified) we're always
testing against the default draft.

The main change here is the way that the "required" property has
changed (moving from being defined on the definition of each "property"
to being defined alongside the "properties" object).

@RST-J
Copy link
Contributor

RST-J commented Sep 28, 2016

I agree.

Lots of core tests were explicitly using draft-03, which works slightly
differently to the latest (eg. draft-04). I've updated all
tests to not specify the schema version at all (so they default to using
the latest).To me this feels safer, as (unless explicitly specified) we
will always testing against the default json-schema draft.

The main change has been the way that the "required" property is
defined (moving from the definition of each "property"
to being defined as an array alongside the "properties" object).
@iainbeeston iainbeeston force-pushed the use-latest-draft-in-tests branch from 91e892f to aebac88 Compare September 29, 2016 09:08
@iainbeeston iainbeeston merged commit b16f10c into voxpupuli:master Sep 29, 2016
@iainbeeston iainbeeston deleted the use-latest-draft-in-tests branch September 29, 2016 09:20
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