-
-
Notifications
You must be signed in to change notification settings - Fork 447
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
Missing Response Header Validation checks except for 'Content-Type' #201
Comments
Are you not missing the headers:
x-version:
required: true
schema:
type: string |
Thanks you are right, but fixing the schema I still get a valid response even if the header specified is missing |
Indeed AFAICT validation response and request headers against a spec isn't implemented. Care to try? |
At the moment this feature is not essential, maybe later I could give it a try :) |
I have stumbled upon this library! So far it seems exactly what I need. Thank you! I need to validate Has something changed since April 2020 or waiting for volunteers to implement it?) |
Hi @mariaefi29! I'd be happy to review your pull request. |
openapi3filter.ValidateResponse
checks only the"Content-Type"
header, not performing controls on other header specified in the schemaFor example:
Should we consider not valid a response missing the
"X-Version"
header? At the moment is considered valid.The text was updated successfully, but these errors were encountered: