Skip to content

Parameters on Path Item Object are ignored #140

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

Closed
gweis opened this issue Jun 8, 2019 · 1 comment · Fixed by #144
Closed

Parameters on Path Item Object are ignored #140

gweis opened this issue Jun 8, 2019 · 1 comment · Fixed by #144

Comments

@gweis
Copy link
Contributor

gweis commented Jun 8, 2019

OpenAPI 3 allows for parameter definition directly on a Path Item object. These parameters should be applicable to all operations under this path. However, the way validation works here is that only parameters defined on an 'Operation object' are considered for validation.

I have created a few simple test cases https://github.com/gweis/openapi-core/commit/787799081db01f9b7ebe491e886e947dd270bfc2 to demonstrate the issue (happy to turn them into a pull request).
If my understanding of the spec is correct, all these tests should succeed, but currently they fail. i.e. parameter resId is not validated, not seen as missing, or not even parsed and returned.

@gweis
Copy link
Contributor Author

gweis commented Jun 8, 2019

Related to Pylons/pyramid_openapi3#25

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

Successfully merging a pull request may close this issue.

1 participant