Open felixwoestmann opened 3 months ago
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.
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