Skip to content

Improve user friendliness of json schema generator and validator #101

@gunnar-mb

Description

@gunnar-mb

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions