Forum Discussion
I have not noticed but, you are using a file from a different project, try with swagger-codegen
and let me know if the issue you mentioned is present.
About adding properties to an Array subclass. I'm not sure about this, it's soemthing we can certainly add. Would be good to discuss with community.
Tried with swagger-codegen - the models look good.
I find that OneOfSinglePetResponsePet and OneOfAllPetsResponseItems duplicate each other though and can thus potentially be merged into OneOfPet. But I do not know how feasible that would be for you.
About array - I think there was a misunderstanding. By looking at your tool's output I can only notice small things, conceptually everything is all right.
---
To summarize: AWESOME! Thank you very much. If that would be a feasible goal then I'd propose to dump the two interfaces in favor of a single one as illustrated below. Otherwise - already very good.
public class SinglePetResponse {
private OneOfPet pet = null;
}
public class AllPetsResponse extends ArrayList<OneOfPet> {
private List<OneOfPet> pets = null;
}