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

Parameter reference lost #387

Open
cubahno opened this issue Mar 5, 2025 · 0 comments
Open

Parameter reference lost #387

cubahno opened this issue Mar 5, 2025 · 0 comments

Comments

@cubahno
Copy link

cubahno commented Mar 5, 2025

In this document, the reference to parameter is lost in Schema, schema inlined.

openapi: 3.1.0
info:
  title: API
  version: 1.0.0
paths:
  /checkout:
    post:
      summary: Initiate a checkout
      operationId: initiateCheckout
      tags:
        - Checkout
      parameters:
        - $ref: '#/components/parameters/VersionHeader'
      responses:
        "200":
          description: Checkout successful

components:
  parameters: 
    VersionHeader:
      name: Version
      in: header
      required: true
      schema:
        type: string
        enum:
          - "2020-04-02"
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