Skip to content

Missing template modelEnum #19

Description

@awood

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions