Announcing Semantic Patch
LaunchDarkly has introduced a new alternative form of patch called Semantic Patch to improve the handling of flag changes in their API. Unlike JSON Patch, which requires detailed knowledge of the current resource state and can be difficult to construct and debug, semantic patches allow users to describe higher-level changes they want to make to a flag. This improvement enables features like scheduled flag changes and relative changes to the flag's state. The existing flag PATCH endpoint will continue to accept JSON Patches, but sending a special header along with a flag PATCH request will interpret it as a semantic patch. Currently, anything that can be changed through the flag targeting page is supported by semantic patch, and more changes are planned to be supported soon.
Company
LaunchDarkly
Date published
Aug. 5, 2020
Author(s)
Kevin Brackbill
Word count
667
Hacker News points
None found.
Language
English