-
Notifications
You must be signed in to change notification settings - Fork 344
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
Validation error on object as Header Parameter #2559
Labels
Comments
Hello, it doesnt seem like prism support this. Can you help me understand how often you are seeing objects in headers and how it will benefit you? |
Hello, I have never encountered it in the wild. I am developing an OpenAPI Code generator and am using prism to validate my implementation. I was implementing header parameters when I encountered the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For an endpoint which has an object as a header parameter I receive an validation error, even though my spec is consistent with the OpenAPI 3 standard.
Current Behavior
The server errors saying:
Expected Behavior
The server answers with a mock response.
Steps to Reproduce
Here is the OpenAPI definition used and the corresponding cURL with the object serialization as described in https://swagger.io/docs/specification/serialization/#header
curl -X GET 'http://localhost:4010/pets/header' -H 'Prefer: code=200' -H 'exclude: id, 10, name, Fido, tag, tag1'
Environment
The text was updated successfully, but these errors were encountered: