Skip to content

Header examples with comma are displayed incorrectly in curl command #1063

@derklaro

Description

@derklaro

When a header is included in the openapi spec and its example contains a comma, the header example is displayed incorrectly in the example curl command. This is especially an issue for date-time headers:

      - name: If-Modified-Since
        in: header
        schema:
          format: date-time
          examples:
          - "Wed, 21 Oct 2015 07:28:00 GMT"

is displayed as:
image

this was probably introduced with #1024

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions