Replies: 1 comment
-
@mskaif |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a schema that look like this:
{ "meta1": "desc", "meta2": "desc", "schemas": { "FirstObj": { "type": "object", "properties": { "prop1": { "type": "string", "description": "desc.", "format": "int32" }, "prop2": { "$ref": "another_obj_In_the_same_file", "description": "desc." } }, "description": "desc.", "id": "FirstObj" }, "SecondObj": {
etc...This is jsonschema draft 3 compliant but what can I do to make it work with the current datamodel-code-generator? I need to create the models from the schema but exporting objects to separate json files before creating the classes is not convenient. How can I get the ref to work from one document? Please note that jsonschema document does not list the objects in the right order. I would really appreciate your help!
Beta Was this translation helpful? Give feedback.
All reactions