-
Notifications
You must be signed in to change notification settings - Fork 504
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
Prevent setting not allowed response headers #1658
Comments
Hello there maxuai 👋 Thank you for opening your very first issue in this project. We will try to get back to you as soon as we can.👀 |
As I just realized: This value is use for validation which of course won't work anymore when not set. So maybe it should be allowed to set it but not included in the generated OpenAPI spec file? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
do not close |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
Trying to set a not allowed value for response headers via
@Header
throws an error.Current Behavior
Setting a not allowed value for response headers e.g
@Header('Accept') acceptHeader: 'application/json',
will be included in the generated OpenAPI file.The text was updated successfully, but these errors were encountered: