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

Path parameters are ignored into operation #4391

Open
loganmzz opened this issue Aug 22, 2023 · 0 comments
Open

Path parameters are ignored into operation #4391

loganmzz opened this issue Aug 22, 2023 · 0 comments

Comments

@loganmzz
Copy link

Q&A (please complete the following information)

  • OS: Windows 10
  • Browser: Google Chrome
  • Version: SaaS
  • Method of installation: SaaS
  • Swagger-Editor version: SaaS
  • Swagger/OpenAPI version: OpenAPI 3.1.0

Content & configuration

Example Swagger/OpenAPI definition:

openapi: "3.1.0"

info:
  version: 1.0.0
  title: Path parameters are ignored into operation 

paths:
  /{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    get:
      #parameters:
      # - name: id
      #   in: path
      #   required: true
      #   schema:
      #     type: string
      responses:
        '200':
          description: Success

Describe the bug you're encountering

Path has parameter {id} and its describe directly at this level as specified here: https://spec.openapis.org/oas/v3.1.0#pathItemParameters

To reproduce...

See example above

Expected behavior

Parameters on every operation

Screenshots

image

Additional context or thoughts

Strangely, editing YAML may make the operation parameters to appear.

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