Skip to content

Unable to get response headers in case of no content #71

Description

@szhajdu

When generating a client where response body is empty I'm not able to get the response object to check headers when needed.

Example

openapi: "3.0.0"
info:
  version: 1.0.0
  title: Swagger Petstore
  license:
    name: MIT
servers:
  - url: http://petstore.swagger.io/v1
paths:
  /pets/{petId}:
    parameters:
      - name: petId
        in: path
        required: true
        description: The id of the pet
        schema:
          type: string
    put:
      summary: Create a pet
      operationId: createPet
      tags:
        - pets
      responses:
        '204':
          description: No content
          headers:
            x-foo:
              description: Something important
              schema:
                type: string

Is there any other way to get response object after executing request in api clients?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions