Add support for expandable OpenAPI.webhooks grouped by tags #10405
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support for expandable OpenAPI.webhooks grouped by tags
Description
This PR implements support for expandable OpenAPI.webhooks grouped by tags in Swagger UI, similar to how OpenAPI.paths are currently handled. The implementation provides:
webhooksWithTags
andtaggedWebhooks
) to properly group webhooks by their tagsMotivation and Context
Fixes #8490
This change improves the user experience for OpenAPI 3.1.0 specifications that include webhooks by organizing them into collapsible tag groups, consistent with how paths are displayed. Previously, webhooks were displayed as a flat list without tag organization.
How Has This Been Tested?
I've verified my changes in a local environment using webpack dev server with a test OpenAPI 3.1.0 document containing tagged webhooks.
Screenshots (if appropriate):
Webhook Tags Overview :
Expanded Webhook Sections :
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests