Skip to content

Header.examples is ignored #5432

Open
Open

Description

@shockey

Content & configuration

Example Swagger/OpenAPI definition:

openapi: 3.0.0

paths:
  /:
    get:
      responses:
        "200":
          description: OK!
          headers:
            X-Rate-Limit-Remaining:
              schema:
                type: number
              description: API rate limit
              examples:
                HasMoreLeft:
                  value: 9999
                  description: A positive integer indicates that the user can continue making API calls
                LimitReached:
                  value: 0
                  description: Zero indicates that the user cannot continue making API requests

Expected behavior

My Header examples should be visible!

Additional context or thoughts

#5427.

Activity

  1. iamjoshuabcxvii commented on Feb 26, 2020

    @iamjoshuabcxvii

    Any update on this one though?, this was posted in way back 2019.

  2. Amunak commented on Feb 16, 2022

    @Amunak

    Is this a feature request? Sounds like a bug to me, as it omits displaying a regular part of the OpenAPI spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions