-
Notifications
You must be signed in to change notification settings - Fork 356
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
Bugfix for #215 #224
Bugfix for #215 #224
Conversation
@rtucek thanks for the contribution! A couple of things:
|
…an object but also not an instance of itself. Added a regression test.
* fix-issue-215: This patch fixes jsonrainbow#215 by ensuring that $value is not just an object but also not an instance of itself. Added a regression test. Rebased for jsonrainbow#224
Hi @bighappyface, thank your for your quick reply.
Anyhow, I did the rebase as requested and it passed the test. |
@rtucek thanks for the update. Upon deeper review of the changes, I think we have misplaced the If the validation were located in the appropriate place then the negation added in this PR would probably be unnecessary. Further, this package already validates all of the https://github.com/json-schema/JSON-Schema-Test-Suite/blob/1.1.0/tests/draft4/minProperties.json Those test cases demonstrate the constraint validation specifically. That is what I meant by " please simplify the test schema and document to focus only on demonstrating the code change." The latest update to the new test case seems a bit odd to me because it's redundant and the "document" is an empty object literal ( Would you please look at migrating the |
Yeah, it would definitely be a true fix for the issue - rather than just a dirty one-line quicky 😄 |
Fixed bug, discovered in #215.
Also added regression test.