If a spec declares an enumeration as a separate component, e.g.
[...]
get:
operationId: getEvents
parameters:
- name: status
in: query
schema:
$ref: "#/components/schemas/Status"
components:
schemas:
Status:
type: string
enum:
- A
- B
OpenAPI references the modelEnum template rather than modelInnerEnum and swagwire is missing that template. See here for the stock Java one that ships with openapi-generator.
If a spec declares an enumeration as a separate component, e.g.
OpenAPI references the
modelEnumtemplate rather thanmodelInnerEnumand swagwire is missing that template. See here for the stock Java one that ships with openapi-generator.