Skip to content

Fix explicit JSON null responses and matching - #270

Open
mk78 wants to merge 1 commit into
Colin-b:developfrom
mk78:mk78-bug-hunt-fix
Open

mk78 wants to merge 1 commit into
Colin-b:developfrom
mk78:mk78-bug-hunt-fix

Conversation

@mk78

@mk78 mk78 commented Dec 4, 2026

Copy link
Copy Markdown

Summary

Fix handling of explicitly provided JSON null values.

Previously, \json=None\ was treated as an omitted response body,
while \match_json=None\ acted as an unrestricted matcher.

The implementation now distinguishes omitted arguments from
explicit JSON null values using private sentinels.

Tests

  • Regression tests fail on unmodified develop and pass with fix
  • Full suite: 356 passed
  • Coverage: 100%
  • Pre-commit checks: passed

AI assistance

Microsoft Copilot assisted with implementation and testing.

I personally reviewed the changes and take responsibility
for this contribution.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

1 participant