Forum Discussion
HenrikHL
7 months agoFrequent Contributor
Hi Tom_S ,
Thank you for the prompt reply :-)
When you write:
However, for headers, even though they can be defined as required (required: true), Swagger UI does not display a red asterisk or similar indicator for them. This is by design and not an issue with the tool. The required header will still be enforced during validation.
I assume you mean required fields on headers in responses - because it works fine for headers in requests:
- Tom_S7 months ago
Staff
Hi Henrik, yes, you're correct. The red asterix is displayed for headers in requests, as this field is required by the user of the API to fill in when sending a request.