Skip to content

Accept JSON Patch operations in client.patch() - #172

Open
asaraog wants to merge 1 commit into
beda-software:masterfrom
asaraog:feat/json-patch
Open

Accept JSON Patch operations in client.patch()#172
asaraog wants to merge 1 commit into
beda-software:masterfrom
asaraog:feat/json-patch

Conversation

@asaraog

@asaraog asaraog commented Sep 9, 2026

Copy link
Copy Markdown

Fixes #138. Adds operations=[...] for JSON Patch, sent as application/json-patch+json.

patch() only took field values, which it sent as a partial resource with
application/json. HAPI rejects that with HAPI-1965. An `operations` list is
now sent as-is with Content-Type application/json-patch+json; the field-values
form is unchanged.

Fixes beda-software#138
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.

Patch operations result in OperationOutcome HAPI-1965: Invalid Content-Type for PATCH operation: application/json

1 participant