Skip to content

feat: support RFC 7396 JSON Merge Patch on PATCH endpoints - #585

Merged
thlpkee20-wq merged 2 commits into
Stellabill:mainfrom
chiemezie1:feat/json-merge-patch
Jul 29, 2026
Merged

feat: support RFC 7396 JSON Merge Patch on PATCH endpoints#585
thlpkee20-wq merged 2 commits into
Stellabill:mainfrom
chiemezie1:feat/json-merge-patch

Conversation

@chiemezie1

Copy link
Copy Markdown
Contributor

feat: support RFC 7396 JSON Merge Patch on PATCH endpoints

Summary

  • Added support for JSON Merge Patch (RFC 7396) on subscription and plan PATCH endpoints.
  • Implemented partial update handling for merge-patch payloads, including explicit null values to clear fields and missing fields to leave values unchanged.
  • Rejected unknown fields with a 400 response to keep the payload contract strict and secure.
  • Added regression tests and updated OpenAPI documentation to advertise the new content type.

Testing

  • Verified the validator package builds successfully:
    • go test ./internal/validator
  • Verified the updated OpenAPI YAML parses successfully:
    • Python YAML parse of openapi.yaml

Closes: #404

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@chiemezie1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@thlpkee20-wq
thlpkee20-wq merged commit e7c3714 into Stellabill:main Jul 29, 2026
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.

Support JSON Merge Patch (RFC 7396) for subscription and plan updates

3 participants