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

Test against JSON schema test suite #1985

Open
provokateurin opened this issue Apr 27, 2024 · 2 comments
Open

Test against JSON schema test suite #1985

provokateurin opened this issue Apr 27, 2024 · 2 comments

Comments

@provokateurin
Copy link
Member

https://github.com/json-schema-org/JSON-Schema-Test-Suite

@Leptopoda
Copy link
Member

I doubt that this is easily doable.
We do not validate schema definitions on the fly so we'd need to generate an object and then run the tests on it.
I'm not sure how this would work but we might need to have a separate generator for the test cases? Or just do a lot of jq magic 🤷‍♀️

@provokateurin
Copy link
Member Author

As a first step I'd like to just have the code generated to see that no invalid code is generated. Running tests on the resulting code could be a second step.
With separate generator you probably mean the fact that the test cases are inside an array in those files, right? I'd be fine with either jq magic (harder) or a separate generator (easier, but more likely to introduce subtle differences).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants