Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is JSON Merge PATCH RFC7396 compatible with STAC? #13

Open
rhysrevans3 opened this issue Aug 16, 2024 · 1 comment
Open

Is JSON Merge PATCH RFC7396 compatible with STAC? #13

rhysrevans3 opened this issue Aug 16, 2024 · 1 comment

Comments

@rhysrevans3
Copy link

rhysrevans3 commented Aug 16, 2024

In JSON Merge Patch RFC7396 null values are given special meaning to indicate the removal of existing values in the target.

This isn't recommended for documents that allow explicit null values like STAC.

This design means that merge patch documents are suitable for
describing modifications to JSON documents that primarily use objects
for their structure and do not make use of explicit null values.

Should JSON Patch RFC6902 be supported? This allow for operations (add, remove, replace, move, copy, test) to be declared which allows the setting of null values.

Both can be supported simultaneously through the use of the Accept/Content-Type headers application/merge-patch+json and application/json-patch+json

@m-mohr
Copy link
Contributor

m-mohr commented Oct 14, 2024

See also opengeospatial/ogcapi-features#957

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

No branches or pull requests

2 participants