Код: Выделить всё
@RequestMapping(
method = RequestMethod.GET,
value = "/notification/{id}/download",
produces = { "application/pdf", "application/json" }
)
ResponseEntity downloadNotification(
@Size(max = 255) @PathVariable("id") @Encrypted String id
);
< /code>
И это спецификация. Я попробовал x-field-extra-annotation Код: Выделить всё
/notification/{id}/download:
get:
parameters:
- name: id
schema:
maxLength: 255
type: string
in: path
required: true
x-field-extra-annotation: "@sbbol.annotation.Encrypted"
< /code>
Но Openapi игнорирует его, и я получаю конечную точку без моей аннотации: < /p>
ResponseEntity downloadNotification(
@Size(max = 255) @PathVariable("id") String id
);
Подробнее здесь: https://stackoverflow.com/questions/794 ... in-openapi