GenSON icon indicating copy to clipboard operation
GenSON copied to clipboard

GenSON is a powerful, user-friendly JSON Schema generator built in Python.

Results 27 GenSON issues
Sort by recently updated
recently updated
newest added

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

bug

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

enhancement
clarification needed

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

enhancement

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

clarification needed

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.

enhancement
clarification needed

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

enhancement

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

enhancement

Do we have YAMl support? Do you want it? I'd be happy to implement, at least on the input side.

enhancement

for some fields, i need add pattern in schema conf, and how to add pattern for each field? thanks

enhancement
wontfix

``` 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",...

enhancement