-
Notifications
You must be signed in to change notification settings - Fork 74
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
Make "required" configurable #8
Comments
It would be better still to have required be configurable per object in the json. |
Yes - but at least an overall strategy for "required" across the object would be a good start. |
I'm in the process of creating a pull request which should address both concerns. |
Please check out #10 and see if it solves your use case. |
Sounds interesting... Regards,
|
First of all thank you for the awesome tool! It is indeed very useful!
Currently when one reverse engineers the JSON Schema from the JSON - the required attribute is always set to true - this is in the generator.py file in the to_dict method - the schema_dict["required"] is hard coded to True.
It would be good if a command line option could be offered to to control this property - so users can generate schemas with all properties required or all not required.
Thank you!
The text was updated successfully, but these errors were encountered: