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

added type:object to contentSchema schemas #618

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

gregsdennis
Copy link
Member

Resolves #609

That issue is a whole thing, but in the end my implementation had two bugs that cancelled each other out to pass the test. Either one of them separately would have caused one of these test cases to fail.

Regardless, adding this to the content schema still improves the test and prevents implementations from just evaluating the string itself against the schema.

The test I was wanting where the decoded content failed the content schema already exists as an invalid base64-encoded JSON document; validates true.

@gregsdennis gregsdennis requested a review from a team as a code owner November 22, 2022 23:16
@Julian
Copy link
Member

Julian commented Nov 28, 2022

Thanks!

@Julian Julian merged commit 78c8882 into main Nov 28, 2022
@Julian Julian deleted the gregsdennis/contentschema-should-fail-content branch November 28, 2022 15:27
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.

contentSchema tests inadequate
2 participants