We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Is there any way to support inheritance in code generation? like specifying the parent/base model in the JSON schema?
The only resource I found about this issue was this discussions https://gist.github.com/leedm777/5730877 and it doesn't seem to be implemented yet!
I need to generate the following Java models from the below JSON schema
public class Bar { String a; String b; } public calls Foo extends Bar { String c; String d; String e; }
{ "Bar": { "properties": { "a": { "type": "string" }, "b": { "type": "string" } } }, "Foo": { "properties": { "c": { "type": "string" }, "d": { "type": "string" }, "e": { "type": "string" } }, "parent": "Bar" } }
The text was updated successfully, but these errors were encountered:
If you look at the examples under the Schema Object you'll see how inheritance and composition is defined.
The support for it is not yet included, but please follow #358 for integration.
Sorry, something went wrong.
No branches or pull requests
Is there any way to support inheritance in code generation? like specifying the parent/base model in the JSON schema?
The only resource I found about this issue was this discussions https://gist.github.com/leedm777/5730877 and it doesn't seem to be implemented yet!
I need to generate the following Java models from the below JSON schema
The text was updated successfully, but these errors were encountered: