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

Add JSON schemas #291

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Add JSON schemas #291

wants to merge 12 commits into from

Conversation

serras
Copy link

@serras serras commented May 30, 2022

This can be useful to check for small typos, and also to auto-generate readers in many programming languages.

@serras
Copy link
Author

serras commented Jul 14, 2022

@adback03 could I get a review on this? thanks in advance!

@puddlejumper90
Copy link

Any updates on this? This looks pretty useful to me.

@serras
Copy link
Author

serras commented Jul 28, 2022

Would it help if I added also a GitHub action to check that any change is correct w.r.t. the schemas?

@adback03
Copy link
Member

Can you include a script used to generate the file? Since many of the enum fields are dynamic, they could change frequently.

@serras
Copy link
Author

serras commented Nov 15, 2022

@adback03 I used an online generator from one of them, and then run jsonschema until no more errors were reported.

for i in *.json; do jsonschema -i $i ../schema.json; done

What I could do is to add a GitHub Action which checks that files pass the schema validation, and reject the PR if they don't.

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

Successfully merging this pull request may close these issues.

3 participants