Skip to content

Fix callback payload expectations#126

Merged
steventux merged 3 commits intomainfrom
fix-callback-payload-expectations
Jun 11, 2025
Merged

Fix callback payload expectations#126
steventux merged 3 commits intomainfrom
fix-callback-payload-expectations

Conversation

@steventux
Copy link
Contributor

Context

image

Callback payloads from NHS Notify are JSON with a top level data property which has an array value. We currently expect an object value which is wrong.

Changes

Fix expectations and handling of data property as an array. We suspect this will always contain one item only for BCSS but adds the ability to record statuses of multiple items in the data array.

Mobbed/paired with @dnimmo and @cameronhargreaves1-nhs on this.

Copy link
Contributor

@cameronhargreaves1-nhs cameronhargreaves1-nhs left a comment

Choose a reason for hiding this comment

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

Looks good! Nice one that we caught this before it got any further 😅

@steventux steventux added this pull request to the merge queue Jun 11, 2025
Merged via the queue into main with commit 7acf240 Jun 11, 2025
13 checks passed
@steventux steventux deleted the fix-callback-payload-expectations branch June 11, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants