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

Improve user friendliness of json schema generator and validator #101

Open
gunnar-mb opened this issue Jan 24, 2024 · 0 comments
Open

Improve user friendliness of json schema generator and validator #101

gunnar-mb opened this issue Jan 24, 2024 · 0 comments
Labels
good first issue Good for newcomers quality

Comments

@gunnar-mb
Copy link
Collaborator

gunnar-mb commented Jan 24, 2024

Either one of the two jobs can be done in isolation if you don't want to do both at the same time:

  • Combine ifex_to_json_schema.py and pretty_print_json.py so that the first file outputs in "pretty" format right away. This involves changing the print statements to instead collect up the result into an internal string, which can then be passed to the json load+dump sequence.
  • validate.py is very simple and throws an IndexError if no input file is provided, instead of writing a usage instruction. Modify validate.py to use the standard argparse python module, and give appropriate usage information.

(pretty_print_json.py has the same problem as validate.py, but instead of improving it, it would be better to combine it as proposed in the first bullet).

@gunnar-mb gunnar-mb added good first issue Good for newcomers quality labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers quality
Projects
None yet
Development

No branches or pull requests

1 participant