You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Get Stackoverflow error if array items schema contains trees/cycle dependencies for children #1376
@Generated("jsonschema2pojo")
public class MyFolder {
@JsonProperty("folders")
private List<Folder> folders = new ArrayList<Folder>();
}
@Generated("jsonschema2pojo")
public class Folder {
@JsonProperty("folders")
private List<Folder> folders = new ArrayList<Folder>();
}
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
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.
changed the title [-]Get Stackoverflow error if schema contains trees/cycle dependencies for children[/-][+]Get Stackoverflow error if array items schema contains trees/cycle dependencies for children[/+]on Jan 21, 2023
Activity
eirnym commentedon Feb 9, 2022
Could you write a gist and compile an example model?
LeatherDeerAU commentedon Feb 10, 2022
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
joelittlejohn commentedon Feb 11, 2022
Yes, looks like there's a bug here in how the
#reference is resolved. The first schema should just generate: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.
Use generated item type for array item if it is present
Use generated item type for array item if it is present
Use generated item type for array item if it is present
[-]Get Stackoverflow error if schema contains trees/cycle dependencies for children[/-][+]Get Stackoverflow error if array items schema contains trees/cycle dependencies for children[/+]