-
-
Notifications
You must be signed in to change notification settings - Fork 537
Open
Description
Is your feature request related to a problem? Please describe.
@webhooks are included in OpenAPI automatically without a possibility to exclude them from a group.
When multiple GroupedOpenApi are defined all Webhooks are included in all groups.
Some Webhooks are relevant for certain groups only.
Describe the solution you'd like
Allow customization over the Webhook inclusion.
i.e.
GroupedOpenApi.builder()
.addOpenApiCustomizer(openApi -> {
openApi.addWebhooksFromClass(MyWebhookDefinitions.class);
})
the invocation of calculateWebhooks(openAPI, locale);
method in AbstractOpenApiResource.getOpenApi
method should be wrapped
if (springDocConfigProperties.isWebhookDetectionEnabled()) {
calculateWebhooks(openAPI, locale);
}
Describe alternatives you've considered
I've tried to get into AbstractOpenApiResource.calculateWebhooks
. That method is protected so customization is possible but not a clean solution.
thank you
AlexanderBartash
Metadata
Metadata
Assignees
Labels
No labels