Skip to content

Conversation

@AndyButland
Copy link
Contributor

Prerequisites

  • I have added steps to test this contribution in the description below

Addresses comment raised here: #15927 (comment) on #15927

Description

As noted in the linked comment, we don't need to prevent custom webhook implementations from providing null payloads if they want to.

Copilot AI review requested due to automatic review settings October 27, 2025 10:57
Copy link
Contributor

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 reverts a nullability constraint on the ConvertNotificationToRequestPayload method to restore flexibility for derived webhook classes. The change allows custom webhook implementations to return null payloads when needed, rather than forcing them to always provide a non-null object.

Key Changes

  • Modified the return type of ConvertNotificationToRequestPayload from object to object? to permit null return values

Copy link
Contributor

@nikolajlauridsen nikolajlauridsen left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@AndyButland AndyButland merged commit d3b9256 into release/17.0 Oct 27, 2025
22 checks passed
@AndyButland AndyButland deleted the v17/hotfix/revert-nullability-update branch October 27, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants