Open rajeswarikolluri opened 5 years ago
I am facing same issue. Is there a fix or workaround for this ?
Could you try using the solution proposed in this pull request? https://github.com/swagger-api/swagger-codegen/pull/10153
Hi , It is still not working with swagger-codegen-cli-3.0.25.jar.
For SPRING language for the same yaml, it generates below annotation for Pet Class. If language is "JAXRS-JERSEY" then below is missing
/**
Below is the sample yaml with Inheritance and Polymorphism. While generating server stubs for JAXRS-JERSEY. Model objects doesn't contain @JsonTypeInfo and @JsonSubTypes . Is this supported in latest swagger-codegen-cli-3.0.5.jar ?
openapi: "3.0.0" info: description: "This is a sample server Petstore server." version: "1.0.0" title: "Swagger Petstore" termsOfService: "http://swagger.io/terms/" tags: •name: "pets" description: "Everything about your Pets" paths: /pets: patch: requestBody: content: application/json: schema: oneOf:
all other properties specific to a Cat
properties: name: type: string Dog: allOf:
all other properties specific to a Dog
properties: bark: type: string Lizard: allOf:
all other properties specific to a Lizard
properties: lovesRocks: type: boolean