fix: prevent webook from crashing in case of openapi 3.0#10623
Merged
lukaszzazulak merged 2 commits intomasterfrom Oct 31, 2025
Merged
fix: prevent webook from crashing in case of openapi 3.0#10623lukaszzazulak merged 2 commits intomasterfrom
lukaszzazulak merged 2 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a crash in the webhook component when processing OpenAPI 3.0 specifications by adding a null check before accessing webhook operation data.
- Added null safety check in the Webhooks component to prevent crashes when
operationDTOsis undefined - Updated test file to use correct OpenAPI 3.0 specification file
- Enhanced test assertions to verify the component renders gracefully without webhooks
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/core/plugins/oas31/components/webhooks.jsx | Added null check to prevent crash when webhook operations are unavailable |
| test/e2e-cypress/e2e/features/webhooks.cy.js | Updated test to use OpenAPI 3.0 spec and verify graceful handling of missing webhooks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
glowcloud
approved these changes
Oct 31, 2025
swagger-bot
pushed a commit
that referenced
this pull request
Oct 31, 2025
## [5.30.1](v5.30.0...v5.30.1) (2025-10-31) ### Bug Fixes * prevent webook from crashing in case of openapi 3.0 ([#10623](#10623)) ([e1ad309](e1ad309))
Contributor
|
🎉 This PR is included in version 5.30.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
delendik-testops
pushed a commit
to ModiusOpenData/swagger-ui
that referenced
this pull request
Mar 3, 2026
…#10623) * fix: prevent webook from crashing in case of openapi 3.0
delendik-testops
pushed a commit
to ModiusOpenData/swagger-ui
that referenced
this pull request
Mar 3, 2026
## [5.30.1](swagger-api/swagger-ui@v5.30.0...v5.30.1) (2025-10-31) ### Bug Fixes * prevent webook from crashing in case of openapi 3.0 ([swagger-api#10623](swagger-api#10623)) ([e1ad309](swagger-api@e1ad309))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Prevent webhook component from crashing in case openapi 3.0