Skip to content

Remove boolean form of exclusive* keywords. #210

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

Merged
merged 1 commit into from
Dec 29, 2016

Conversation

handrews
Copy link
Contributor

Yet another alternative to #185 and #189. This just drops the boolean keywords and does the minimal changes necessary to implement that.

@epoberezkin, if you want to make it impossible for both minimum and exclusiveMinimum to appear together (and likewise for maximum and exclusiveMaximum) could you please file that as a separate issue like you did with the items and additionalItems dependencies? All of those cases are ones that work without the dependencies but could be more helpful with, so let's discuss that whole concept on its own. Maybe even just broaden #209 to cover all of these meta-schema dependency questions? Then we could sort it all out at once and if it gets sorted before this gets merged (if it ever does) I will update this patch accordingly.

@handrews handrews added this to the draft-next (draft-6) milestone Dec 28, 2016
@epoberezkin
Copy link
Member

@handrews I think I'd rather make separate PR for all dependencies (exclusiveMaximum and additionalItems). This can be merged as is I think, I've approved.

@handrews
Copy link
Contributor Author

Thanks, @epoberezkin !

@awwright @Relequestual , over to you for final approval.

@awwright
Copy link
Member

This looks fine, as long as it's clear that implementations are still allowed to implement a superset of functionality (particularly, despite saying "MUST be a number")

@awwright awwright merged commit 41fca9f into json-schema-org:master Dec 29, 2016
@epoberezkin
Copy link
Member

@awwright how can we stop them :)
Some still support required: true form from draft 3...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants