Closed
Description
Hi,
Here is my controller part:
...
@Operation(summary = "find-articles")
@Parameter(name = HttpHeaders.IF_MODIFIED_SINCE,
description = "DateTime",
in = ParameterIn.HEADER,
schema = @Schema(type = "string", format = "date-time"),
example = "2020-01-01T00:00:00.000Z"
)
public ResponseEntity<Page<Article>> findArticles(
@RequestHeader(value = HttpHeaders.IF_MODIFIED_SINCE, required = false) Instant modifiedSince, ...
I expect to see my example and my description in it but I've only got:
If I put this part under "parameters" in @operation it works but as I want to create my own reusable annotation, I'd like this @parameter to be used.
Looking deeper in the code, it appears that the binding can't be done between modifiedSince
and HttpHeaders.IF_MODIFIED_SINCE
where as the merge works if in @operation.
Regards,