Skip to content

Integer enum with value description #226

@sbahloul

Description

@sbahloul

First of all, thank you for the great work.

Quick question: which annotations should be used to specify an integer enum with values description ?

components:
  schemas:
    RequestTypeEnum:
      type: integer
      enum:
        - 1
        - 2
      description: >
        Sort order:
          * `1` - Description of the requestType = 1
          * `2` - Description of the requestType = 2

Thank you,
Sebastien

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions