Skip to content

docs(agents): record unset-vs-empty rule for update payloads - #562

Draft
prasad-albert wants to merge 1 commit into
mainfrom
docs/patch-payload-opinions
Draft

docs(agents): record unset-vs-empty rule for update payloads#562
prasad-albert wants to merge 1 commit into
mainfrom
docs/patch-payload-opinions

Conversation

@prasad-albert

Copy link
Copy Markdown
Collaborator

Adds OPINIONS.md capturing the non-obvious rule for PATCH/update() payloads: a field the caller never set must be left untouched, gated on model_fields_set (never on value is None). Distinguishes unset (no-op) from explicit None (delete) and explicit []/{} (clear).

Links it from AGENTS.md Coding Standards so it is read before changing update methods or patch-payload generators.

Docs-only. The corresponding code fix is in #561.

Add OPINIONS.md with the PATCH/update() unset-vs-empty rule and link it
from AGENTS.md so it is read before touching update methods or
patch-payload generators.
@claude

claude Bot commented Jun 24, 2026

Copy link
Copy Markdown

Looks good - no bugs or correctness issues found.

@prasad-albert
prasad-albert marked this pull request as draft June 26, 2026 05:35
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

Successfully merging this pull request may close these issues.

1 participant