-
-
Notifications
You must be signed in to change notification settings - Fork 544
Description
Is your feature request related to a problem? Please describe.
I have a Spring Data REST project where I would like to exclude a specific REST repository from the generated OpenAPI documentation. I do not see an easy way to do this. If this were a controller, I could merely annotate it with @Hidden
to achieve this goal.
Describe the solution you'd like
When using springdoc-openapi-data-rest
, it would be nice if specific repositories could be disabled using @Hidden
in the same manner as applying it to a controller hides the controller. A repository thus annotation would be completely skipped as though it did not exist when generating the OpenAPI description.
Additional context
This feels in line with how other annotations are supported in @Repository
classes, for instance @SecurityRequirement
and @Tag