-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
contains no longer applies to objects #705
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxContains.json Line 19-28 can also be removed.
{ | ||
"description": "object with property matching schema (5) is valid", | ||
"data": { "a": 3, "b": 4, "c": 5 }, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "object with property matching schema (6) is valid", | ||
"data": { "a": 3, "b": 4, "c": 6 }, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "object with two properties matching schema (5, 6) is valid", | ||
"data": { "a": 3, "b": 4, "c": 5, "d": 6 }, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "object without properties matching schema is invalid", | ||
"data": { "a": 2, "b": 3, "c": 4 }, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "empty object is invalid", | ||
"data": {}, | ||
"valid": false | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to re-add the test for an object being true
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does line 107 not satisfy that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it does.
{ | ||
"description": "object with property matching schema (5) is valid", | ||
"data": { "a": 3, "b": 4, "c": 5 }, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "object with property matching schema (6) is valid", | ||
"data": { "a": 3, "b": 4, "c": 6 }, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "object with two properties matching schema (5, 6) is valid", | ||
"data": { "a": 3, "b": 4, "c": 5, "d": 6 }, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "object without properties matching schema is invalid", | ||
"data": { "a": 2, "b": 3, "c": 4 }, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "empty object is invalid", | ||
"data": {}, | ||
"valid": false | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it does.
This PR removes tests that no longer apply.
Relates to json-schema-org/json-schema-spec#1452.
Not sure if we need tests added.