feat(api): add Patch<T> enum for JSON merge-patch semantics

Introduce a three-state Patch<T> (Unchanged / Remove / Set) and a
serde helper patch_field that distinguishes an omitted JSON field
from an explicit null. Wired up next as the field type for the
removable settings on PATCH /v1/users/{user}.
This commit is contained in:
Mirotin Artem
2026-04-25 00:02:32 +03:00
parent 8874396ba5
commit 635bea4de4
2 changed files with 80 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ mod config_store;
mod events;
mod http_utils;
mod model;
mod patch;
mod runtime_edge;
mod runtime_init;
mod runtime_min;