Skip to content

Fix additional properties validation #186

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 2 commits into from
Nov 8, 2015
Merged

Fix additional properties validation #186

merged 2 commits into from
Nov 8, 2015

Conversation

mrix
Copy link
Contributor

@mrix mrix commented Aug 31, 2015

This fixes error when additionalProperties is ignored if properties or patternProperties is not set.
Such definitions are used in http://json-schema.org/draft-04/schema

@bighappyface
Copy link
Collaborator

+1

@stefk
Copy link

stefk commented Oct 12, 2015

+1. This is the correct behaviour. The added tests clearly match the spec, and they're all red without this fix.

@bighappyface
Copy link
Collaborator

@stefk would this conflict with the work you did in #191?

@stefk
Copy link

stefk commented Oct 13, 2015

@bighappyface, yes, but I'll update that PR if needed.

bighappyface added a commit that referenced this pull request Nov 8, 2015
@bighappyface bighappyface merged commit 0a9aec3 into jsonrainbow:master Nov 8, 2015
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.

3 participants