[java] Enum conversion in Java (for Jersey as well as retrofit) is not happening appropriately
@wing328 Enum conversion in Java (for Jersey as well as retrofit) is not happening appropriately. For e.g I have following structure: Car: Type: string Enum: [“ford”, “chevy”, “lexus”] MyProfile: Properties: MyCar: Type: “#/definitions/Car”
Then, for jersey, car.java gets generated correctly with Car object as enum, but MyCar object gets messed up, as it gets generated as complete new class with no type information. For retrofit, this is completely broken. Car object itself gets generated as broken object without any enum tag or specified values.
@wing328 Any more input require on this?
MyCar:
Type: “#/definitions/Car”
Should it be as follow instead?
MyCar:
type: object
schema:
$ref: '#/definitions/Pet'
@wing328 We tried above, but it is creating MyCar as empty object with no relation to Pet.