I have definitions of many JSON objects. They include optional elements and several different types. Also some of the definitions are interconnected. e.g.: if you have a definition of how 'address' could look like, one element of the 'user' definition could be 'address'.
What python library do you use in order to write JSON schemas that help generate generic JSON objects and is also able to validate.
It would especially be nice if I could generate a minimum JSON (only the required elements), a full JSON (all required and optional elements) or even specify the the number of elements generated for lists.