From 8b8ac083a5d3273794155e444804a53e11abda3b Mon Sep 17 00:00:00 2001 From: Ulas Kalayci Date: Mon, 4 May 2026 12:29:29 +0200 Subject: [PATCH] docs: Clarify REPLACEMENT semantics for PUT /contacts/:id multi-values Co-Authored-By: Claude Opus 4.7 --- docs/designs/2026-05-04-cardav-api-routes-implementation.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/designs/2026-05-04-cardav-api-routes-implementation.md b/docs/designs/2026-05-04-cardav-api-routes-implementation.md index ddcd2d7..f83556d 100644 --- a/docs/designs/2026-05-04-cardav-api-routes-implementation.md +++ b/docs/designs/2026-05-04-cardav-api-routes-implementation.md @@ -413,6 +413,7 @@ const contactId = transaction(); **Validation:** - `id`: parseInt, must be > 0 - Alle Felder optional (nur gesendete werden geupdatet) +- **Multi-Value-Felder (phones/emails/addresses):** REPLACEMENT-Semantik — wenn gesendet, werden ALLE existierenden Werte gelöscht und durch die gesendeten ersetzt. Client muss vollständiges Array schicken, nicht nur Änderungen. **Logic (Transaction):** ```javascript