-
-
Notifications
You must be signed in to change notification settings - Fork 761
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
Validate parameter list #225
Conversation
@@ -156,8 +167,9 @@ def validate_schema(self, data): | |||
|
|||
|
|||
class ParameterValidator(object): | |||
def __init__(self, parameters): | |||
def __init__(self, parameters, strict_validation=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a docstring explaining what strict_validation does?
Thanks for the Pull Request. The code looks ok but can you also update the documentation? |
Hi @dsem -- checking in here. Did you update the documentation? |
Sorry, I will mike time for this this weekend. Thanks for reaching out. |
1eeae1b
to
6c113c5
Compare
Request validation is enhanced to verify requests only include query or formData parameters that are specified in the spec. This validation does not occur for header or path parameters. This is because most applications probably prefer to ignore extra headers and a request with extra path parameters would point to a different endpoint.
6c113c5
to
fd69a37
Compare
Thanks, all. I've updated the documentation and resolved merge conflicts. |
👍 |
Thanks for the Pull Request |
Fixes #223 .
Changes proposed in this pull request:
add_api()
andApi
to enable this validation.