Skip to content
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

Schema definitions should generated Java pojos regardless if they are referenced #987

Open
ddcruver opened this issue May 20, 2019 · 0 comments · May be fixed by #1523
Open

Schema definitions should generated Java pojos regardless if they are referenced #987

ddcruver opened this issue May 20, 2019 · 0 comments · May be fixed by #1523

Comments

@ddcruver
Copy link
Contributor

The use case is that I have a type that uses an interface, defined outside of jsonschema2pojo, because jsonschema2pojo doesn't support generating of interfaces. I then attach a property with that interface as its type. I then define implementations of that interface in the definitions section, possibly not even in the same schema file.

I would like it to generate theses classes but it does not because no top-level object as defined by a schema file references them directly.

@ddcruver ddcruver changed the title Schema definitions object should be generated regardless if they are referenced Schema definitions should generated Java pojos regardless if they are referenced May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant