How to hide field base on method PUT or POST or advance condition in spring controller by springdoc-openapi

Viewed 4

I can't find the way to hide field base on method in springdoc-api.

Example:

For POST method, i want to hide status field in DTO.

For PUT method, i want to show status field in DTO.

How can i config it by springdoc-openapi or anyway i can hidden field base on the condition.

0 Answers
Related