Skip to content

more tests for true != 1 and false != 0 inside objects/arrays #394

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

Conversation

ryangalamb
Copy link
Contributor

No description provided.

@Julian
Copy link
Member

Julian commented Jun 10, 2020

Thanks! Looks great. Can you help backport these (copy them) to the previous drafts they apply to as well?

Thanks!

@ryangalamb
Copy link
Contributor Author

Sure thing!

@ryangalamb
Copy link
Contributor Author

I backported the const cases to draft6 and the uniqueItems to draft3.

@@ -125,6 +125,90 @@
}
]
},
{
"description": "const with [false] does not match [0]",
"schema": {"const": [false]},
Copy link
Member

Choose a reason for hiding this comment

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

Should these also be added to enum? Likely there's the same test gap there as here since these are new extra cases.

Copy link
Member

Choose a reason for hiding this comment

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

(And that would apply all the way back to old drafts if so)

@Julian Julian merged commit 43e190e into json-schema-org:master Aug 7, 2020
Julian added a commit that referenced this pull request Aug 13, 2020
Stray bracket comes from copypastaing the array tests here.
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