When running this:
$ genjsonschema-cli create result.json
I get
Encountered an error: failed to create schema: yaml: control characters are not allowed
Just to make sure that json is valid, I've used python builtin library to check it:
$ python -c "import json; json.load(open('result.json'))"
I've tried to use genjsonschema-cli on other files and it worked fine.
In case it's important: the file in question weights ~1.9 GB.
I suppose the library erroneously detects it as a yaml?
When running this:
I get
Just to make sure that json is valid, I've used python builtin library to check it:
$ python -c "import json; json.load(open('result.json'))"I've tried to use
genjsonschema-clion other files and it worked fine.In case it's important: the file in question weights ~1.9 GB.
I suppose the library erroneously detects it as a yaml?