Commit 0c9f076
committed
docs: Clarify payload modeling guidelines in AGENTS.md
- Updated payload modeling section to emphasize mirroring pdfRest's
request field layout for consistency.
- Added recommendations to use `@model_validator(mode="before")` for
mapping user-friendly input onto pdfRest fields.
- Advised against using `@model_serializer` on payload models to
maintain separation of wire formatting in field serializers.
Assisted-by: Codex1 parent a307d80 commit 0c9f076
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
0 commit comments