Skip to content

Validation does not spot response header bug #480

@peteole

Description

@peteole

Hi,
I have the following issue:

I have an OpenAPI 3 schema which has a bug in an operation on a path.
The response headers do not contain a datatype, which is wrong, but not spotted. For example:

...
paths:
  /example/path:
    post:
      description:Example Description
      operationId: example id
      responses:
        '200':
          content:
            audio/wav:
              schema:
                $ref: '#/example-ref'
          description: Example description
          headers:
            X-Example-Header:
              description: example description
...

When I call validate on the whole schema, this is not spotter, however it is wrong as visible in the swagger editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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