Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI v3 cookie parameters not rendered #155

Open
RonaldOlsthoorn opened this issue Jun 13, 2024 · 0 comments
Open

OpenAPI v3 cookie parameters not rendered #155

RonaldOlsthoorn opened this issue Jun 13, 2024 · 0 comments

Comments

@RonaldOlsthoorn
Copy link

I know I'm old-school using cookies. However, I still want to document their use. If I render the following v3 yaml file, no cookie parameter is rendered:

openapi: 3.0.3
info:
  title: Title - OpenAPI 3.0
  description: |-
    Description.
  version: 0.0.1
paths:
  /cat:
    get:
      summary: summary
      description: |
        Description
      parameters:
        - name: COOKIENAME
          in: cookie
          description: Description
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Cat'
components:
  schemas:
    Cat:
      type: object    
      properties:
        name:
          type: string
          description: name
          example: Simba

If I change parameter type from cookie to path it works. In the swagger editor it renders fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant