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

Add parameters validation #19

Open
maticardenas opened this issue Feb 21, 2024 · 1 comment
Open

Add parameters validation #19

maticardenas opened this issue Feb 21, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@maticardenas
Copy link
Owner

Currently the package only performs contract validation for request and response bodies.

Support could be added to also validate that requests included query parameters are valid.

@maticardenas maticardenas added the enhancement New feature or request label Feb 21, 2024
@danut-t danut-t self-assigned this Mar 14, 2024
@maticardenas
Copy link
Owner Author

maticardenas commented Mar 17, 2024

@danut-t I will set #20 (headers validation) as dependant on this one, given that the validation for both would be pretty similar

As stated in OpenAPI spec:

The Header Object follows the structure of the Parameter Object with the following changes:

  • name MUST NOT be specified, it is given in the corresponding headers map.
  • in MUST NOT be specified, it is implicitly in header.
  • All traits that are affected by the location MUST be applicable to a location of header (for example, style).

Most likely will extend validations added in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants