Skip to content
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

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

gregsdennis
Copy link
Member

This PR removes tests that no longer apply.

Relates to json-schema-org/json-schema-spec#1452.

Not sure if we need tests added.

Copy link
Member

@jdesrosiers jdesrosiers left a 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.

Comment on lines -34 to -58
{
"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
},
Copy link
Member

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.

Copy link
Member Author

@gregsdennis gregsdennis Nov 20, 2023

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose it does.

Comment on lines -34 to -58
{
"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
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose it does.

@gregsdennis gregsdennis merged commit 3dab98c into main Nov 21, 2023
3 checks passed
@gregsdennis gregsdennis deleted the gregsdennis/remove-contains-objects-tests branch November 21, 2023 00:01
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