You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Request did not pass the validation rules
[12:27:04 PM] › [VALIDATOR] ✖ error Request header parameter exclude must have required property 'name'
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
The text was updated successfully, but these errors were encountered: