Closed mzielinski closed 7 months ago
It's now possible as follows:
responses = {
@OpenApiResponse(
status = "400",
content = @OpenApiContent(from = EntityDto[].class),
headers = {
@OpenApiParam(name = "X-Error-Message", description = "Error message", type = String.class)
}
)
}
You can use 6.0.1-SNAPSHOT or wait for the next stable release :)
Currently, we are not able to define headers for responses.
It would be good to have such possibility, the same as we can do it for requests.