swagger-editor
swagger-editor copied to clipboard
Path parameters are ignored into operation
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
Additional context or thoughts
Strangely, editing YAML may make the operation parameters to appear.