Skip to content

Can't generate enum item descriptions #1685

@Mazas17

Description

@Mazas17

According to OpenAPI documentation, it is possible to add description to single enum item:

      parameters:
        - in: query
          name: sort
          schema:
            type: string
            enum: [asc, desc]
          description: >
            Sort order:
             * `asc` - Ascending, from A to Z
             * `desc` - Descending, from Z to A

https://swagger.io/docs/specification/data-models/enums/

How to do that with swashbuckle? Can't find any documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wantedA change up for grabs for contributions from the communityp2Medium priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions