JSON Document
Hackolade dynamically generates a sample document In JSON or YAML as you construct the document fields and structure. You may even define the sample data you wish to see appear in that sample document. The sample document can be viewed in the right-hand pane of the JSON Preview tab:
To create a JSON Schema file of your entity, choose the menu Tools > Forward Engineering > JSON Document:
In case of a choice (oneOf or anyOf) the following logic is used for the JSON Data document generation:
Subschema for generation is choosing by priority:
- Fields with user defined "sample"/"default" property
- Non empty "array"/"object" fields
- Any other fields with not “null” JSON Data sample
- “Null" fields