openapi-tools / swagger-maven-plugin

Maven plugin to activate the Swagger Core library to generate OpenAPI documentation.
MIT License
70 stars 45 forks source link

Add the ability to not include all resources #83

Open bass3l opened 3 years ago

bass3l commented 3 years ago

Is your feature request related to a problem? Please describe. Not related to a problem, but using swagger-core (and its related deps) that generates the output at runtime, you can specify the following config entry:

<param-name>openApi.configuration.readAllResources</param-name>
<param-value>false</param-value>

Which will result in only including the classes/ops that where annotated by an annotation from io.swagger.v3.oas.annotations namespace.

I'll try to create a pull request for it if considered. I think JaxRSScanner the one that should get the changes?