-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Get Stackoverflow error if array items schema contains trees/cycle dependencies for children #1376
Comments
Could you write a gist and compile an example model? |
I want to generate the following class:
The second scheme from the first message successfully does this. The first scheme throws an error. It seems to me that this is the same scheme, written in different ways |
Yes, looks like there's a bug here in how the @Generated("jsonschema2pojo")
public class Folder {
@JsonProperty("folders")
private List<Folder> folders = new ArrayList<Folder>();
} We have a variety of these self references in our tests, but something about this example is different. You're right it should work. We should add a test for this and fix. |
Is it possible to have a field inside an array object pointing to an external array? Such a scheme fails with StackOverflowError.
But this schema locally generates classes:
The text was updated successfully, but these errors were encountered: