Commit 80a6eea
committed
AGENTS.md: Clarify validation and file handling conventions
- Recommended using `BeforeValidator` over `@field_validator` for declarative
validation across schemas.
- Documented guidelines for treating `PdfRestClient` and `AsyncPdfRestClient`
as context managers for deterministic resource disposal.
- Established consistent behavior for handling file uploads, multipart forms,
and endpoint parameters, highlighting the use of `PdfRestFile` objects.
- Specified rules for serialization and restricted public APIs from exposing
internal resource identifiers like `PdfRestFileID`.
Assisted-by: Codex1 parent 277cfad commit 80a6eea
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
| |||
0 commit comments