Skip to content

Conversation

@pdaoust
Copy link

@pdaoust pdaoust commented Dec 31, 2011

...all checked properties (from both properties and patternProperties) in a $checkedProperties array. Then it does the array_diff, as you did before, but instead it checks the original list of properties against the list of checked properties to see if there's any left over. Then if additionalProperties is false, it'll fail, and if additionalProperties is a schema, it'll check each additional property against it. NOTE: I did not do any unit testing; I didn't even check to see if there's any syntax errors, but I just thought I'd rough it out for ya. Enjoy!

…ct all checked properties (from both properties and patternProperties) in a $checkedProperties array. Then it does the array_diff, as you did before, but instead it checks the original list of properties against the list of checked properties to see if there's any left over. Then if additionalProperties is false, it'll fail, and if additionalProperties is a schema, it'll check each additional property against it. NOTE: I did not do any unit testing; I didn't even check to see if there's any syntax errors, but I just thought I'd rough it out for ya. Enjoy!
@hasbridge
Copy link
Owner

Thanks, I'll get this tested and merged ASAP.

@pdaoust
Copy link
Author

pdaoust commented Jan 6, 2012

No prob. Hope it works!

@pdaoust pdaoust closed this Jan 6, 2012
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