Hi Yurii, Jan,
Thank you for your comments. I understand that, based on TMF630 guidelines, TMF641 implementations might opt to use JSON Path as an extension to the TMF641 v5 specifications. However, this would require them to support both JSON Pointer and JSONPath. This is essentially what TMF630 Part 5 suggests:
Operations
Operation in a JSON Patch Query document are handled in the same way as for a JSON Patch document but the query parameter in the "path" member is used to identify the element within an array that is impacted by the operation, the one that matches all the criteria included in the query expression.
When the query is not required because the array index can be used, this format is handled in the same way as JSON Patch [RFC6902].
So, the question is whether the upcoming TMF641 specification could incorporate greater flexibility in this regard.
Regards
------------------------------
Taras Pushyk
GlobalLogic
------------------------------
Original Message:
Sent: Sep 26, 2024 02:59
From: Jan Lemmermann
Subject: TMF641 v5 - JSON Path as an Alternative to JSON Pointer
Hi Taras,
I think it also helps to understand that the specification that the JsonPatch "path" should be defined as a JSON pointer does not come directly from the TM forum, but ratherfrom the IETF RFC6902 specification. See https://datatracker.ietf.org/doc/html/rfc6902
And as Yurrii mentioned, TM Forum identified this lack of features and this is why the came up with the JSON Patch Query extension.
Regards,
Jan
Regards,
Jan
------------------------------
Jan Lemmermann
OSS Lead Architect
EWE TEL GmbH
------------------------------