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 3.0.x - validating Path Templating #3321

Closed
char0n opened this issue Oct 25, 2023 · 1 comment
Closed

OpenAPI 3.0.x - validating Path Templating #3321

char0n opened this issue Oct 25, 2023 · 1 comment
Assignees
Labels

Comments

@char0n
Copy link
Member

char0n commented Oct 25, 2023

Every Path Item Object is attached inside Paths Object under patterned field /{path}. The goal of this issue is to validate if the parameters of the Path Item Object contains parameters defined by path templating under the patterned field.

image

NOTE: note that there is a difference between OpenAPI 2.0 and 3.x.y.
In OpenAPI 2.0 every Paramter Object MUST correspond to the associated path segment from the path field in the Paths Object
In OpenAPI 3.x.y each template expression in the path MUST correspond to a path parameter that is included in the Path Item itself and/or in each of the Path Item's Operations.

TODO:

  • make sure this is also properly implemented in OpenAPI 2.0 rules
@char0n
Copy link
Member Author

char0n commented Jan 30, 2024

Looks like duplicate of #3517

@char0n char0n closed this as completed Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants