You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@
34
34
35
35
## Conventions And Gotchas
36
36
- Optional fields in create or update options structs must use `json:",omitzero"`.
37
-
-Optional fields in create or update options structs must be pointer types so explicit zero values can be serialized when needed.
37
+
-Every field with a `json:",omitzero"` tag MUST be a nil-able type (pointers, slices, maps, interfaces, etc.) so omitted vs explicit zero values can be distinguished and serialized correctly when needed. Non-nil-able types (plain `string`, `int`, `bool`, structs, etc.) must not use `omitzero`.
38
38
- List APIs mutate the supplied `*ListOptions` with `Page`, `Pages`, and `Results`; do not reuse one `ListOptions` across list calls.
39
39
- Use `formatAPIPath` for endpoint paths with user-provided string path segments so path escaping matches the client helpers.
40
40
- CI enforces PR titles like `TPT-1234: Description` unless labels exempt the PR (`dependencies`, `hotfix`, `community-contribution`, `ignore-for-release`).
0 commit comments