Hi Ramkumar
It is for this reason that there are multiple PATCH semantics. Merge is probably the easiest, but as you note correctly it doesn't do arrays well. For arrays best to use JSON PATCH, as in
http://tools.ietf.org/html/rfc6902This is covered in the design guidelines for Open APIs, TMF630.
Hope it helps
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
------------------------------
Original Message:
Sent: May 06, 2021 05:15
From: Ramkumar M G
Subject: TMF 632 Patch with JSON Merge Patch
Hi,
How is the implementation for HTTP PATCH via JSON merge patch to be carried for TMF 632, for arrays, say party characteristic?
According to RFC 7386 - JSON Merge Patch, JSON merge patch cannot be used to make changes to an element within array, rather the complete array needs to passed on.
------------------------------
Ramkumar M G
------------------------------