GenSON
GenSON copied to clipboard
GenSON is a powerful, user-friendly JSON Schema generator built in Python.
This works fine: > $ echo '{"key":"{blah} blah"}' | genson {"$schema": "http://json-schema.org/schema#", "required": ["key"], "type": "object", "properties": {"key": {"type": "string"}}} but if there are repeated curly braces within a string,...
I'd like to see support for definitions and a parameter to control when they're used. Most simple would be to a threshold for how many "objects of the same structure"...
Requires to #45 I'd like to see Enums supported for Definitions. Not sure on the design yet (perhaps enum-eligible fields could be specified by json path?), but would love to...
- Doing so will avoid the `required` keyword for an object in the schema to be included - Added test cases - Updated docs Added GenSON to a recent project...
Hello, I am think that "required" field should be an optional. Sometimes people don't want this field, and now they need to remove this field by themselves.
The project description says: 3. The generated schema should be as strict as possible given the first 2 rules. In order to meet that goal, schemas of type "object" should...
Had problem that I couldn`t use your tool to generate schema from 2500+ files. Command line looked like 'genson * > res.json'. That leads to '/bin/rm: cannot execute [Argument list...
Do we have YAMl support? Do you want it? I'd be happy to implement, at least on the input side.
for some fields, i need add pattern in schema conf, and how to add pattern for each field? thanks
``` Traceback (most recent call last): File "/Users/ssbarnea/.pyenv/versions/3.7.4/bin/genson", line 8, in sys.exit(main()) File "/Users/ssbarnea/.pyenv/versions/3.7.4/lib/python3.7/site-packages/genson/cli.py", line 25, in main add_json_from_file(builder, object_file, args.delimiter) File "/Users/ssbarnea/.pyenv/versions/3.7.4/lib/python3.7/site-packages/genson/cli.py", line 97, in add_json_from_file method(json.loads(json_string)) File "/Users/ssbarnea/.pyenv/versions/3.7.4/lib/python3.7/json/__init__.py",...