We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Prefer: code=400 doesn't work after a request with Prefer: example=elon is sent. It works if no example has been chosen previously.
Prefer: code=400
Prefer: example=elon
To Reproduce
prism mock openapi.yaml -h 0.0.0.0
curl -H "Prefer: example=elon" http://localhost:14080/client-api/v2/test curl -H "Prefer: code=400" http://localhost:14080/client-api/v2/test
curl -H "Prefer: example=elon" http://localhost:14080/client-api/v2/test
curl -H "Prefer: code=400" http://localhost:14080/client-api/v2/test
Expected behavior I expect a 400 error response in the second request, I get the same response as the first request instead.
Additional context Might be related to #1071 openapi.txt
The text was updated successfully, but these errors were encountered:
Can you try this branch? #1074
Sorry, something went wrong.
That fixes the issue 👍
@XVincentX that's was quick :) Maybe you can help fix this issue in spectral that's been open for a while? stoplightio/spectral#870
@lehphyro Tengo dos manos solo :)
Successfully merging a pull request may close this issue.
Describe the bug
Prefer: code=400
doesn't work after a request withPrefer: example=elon
is sent.It works if no example has been chosen previously.
To Reproduce
prism mock openapi.yaml -h 0.0.0.0
curl -H "Prefer: example=elon" http://localhost:14080/client-api/v2/test
curl -H "Prefer: code=400" http://localhost:14080/client-api/v2/test
Expected behavior
I expect a 400 error response in the second request, I get the same response as the first request instead.
Additional context
Might be related to #1071
openapi.txt
The text was updated successfully, but these errors were encountered: