Skip to content

fix(api): expect absent rejectionReason instead of null - #41

Merged
kelleyglenn merged 1 commit into
masterfrom
fix/rejection-reason-test-null-field
Feb 23, 2026
Merged

fix(api): expect absent rejectionReason instead of null#41
kelleyglenn merged 1 commit into
masterfrom
fix/rejection-reason-test-null-field

Conversation

@kelleyglenn

@kelleyglenn kelleyglenn commented Feb 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix video-service rejection reason test to match Jackson non_null serialization behavior
  • Video-service uses default-property-inclusion: non_null, so null fields are omitted from JSON responses rather than serialized as null
  • Changed assertion from toMatchObject({ rejectionReason: null }) to toBeUndefined()

Test plan

  • All 104 API integration tests pass locally
  • CI passes on this PR

🤖 Generated with Claude Code

Video-service uses Jackson non_null serialization, which omits null
fields entirely. The test expected rejectionReason: null in the
response, but the field is absent when null. This was masked in CI
because the hardcoded YouTube URL already existed (409 path), so the
assertion was never reached.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kelleyglenn
kelleyglenn merged commit b66654b into master Feb 23, 2026
2 checks passed
@kelleyglenn
kelleyglenn deleted the fix/rejection-reason-test-null-field branch February 23, 2026 04:24
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