Skip to content

Conversation

@lukaszzazulak
Copy link
Contributor

Description

Prevent webhook component from crashing in case openapi 3.0

@lukaszzazulak lukaszzazulak requested a review from Copilot October 31, 2025 06:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 operationDTOs is 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.

@lukaszzazulak lukaszzazulak merged commit e1ad309 into master Oct 31, 2025
8 checks passed
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))
@swagger-bot
Copy link
Contributor

🎉 This PR is included in version 5.30.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants