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
***api:** use correct hashes ([e118e5a](https://github.com/stainless-api/stainless-api-go/commit/e118e5a173e468eb037b0e12e25d7e4e62cba6e9))
23
+
* change list endpoint ([8a34e45](https://github.com/stainless-api/stainless-api-go/commit/8a34e451abf01b2748a339990944f93b33787ddf))
24
+
***client:** support more time formats ([dde7235](https://github.com/stainless-api/stainless-api-go/commit/dde72351a8cfbf8271984e9fda80b630d3fdf161))
25
+
26
+
27
+
### Bug Fixes
28
+
29
+
***client:** time format encoding fix ([67abcf1](https://github.com/stainless-api/stainless-api-go/commit/67abcf1ace98c409d908e09f3d033cbfcf4a32e0))
30
+
31
+
32
+
### Chores
33
+
34
+
***ci:** add timeout thresholds for CI jobs ([d6b6255](https://github.com/stainless-api/stainless-api-go/commit/d6b625593d4244a7a5ef5f98dbec567e5befb0de))
35
+
***ci:** only use depot for staging repos ([2275406](https://github.com/stainless-api/stainless-api-go/commit/22754063ee707b8b0527f7b72b736180c48ecbc7))
36
+
***internal:** codegen related update ([d0aa369](https://github.com/stainless-api/stainless-api-go/commit/d0aa3690b2c934f19a9d3d0f60d0f1167fb1eb9c))
The stainlessv0 library uses the [`omitzero`](https://tip.golang.org/doc/go1.24#encodingjsonpkgencodingjson)
67
72
semantics from the Go 1.24+ `encoding/json` release for request fields.
68
73
69
-
Required primitive fields (`int64`, `string`, etc.) feature the tag <code>\`json:...,required\`</code>. These
74
+
Required primitive fields (`int64`, `string`, etc.) feature the tag <code>\`json:"...,required"\`</code>. These
70
75
fields are always serialized, even their zero values.
71
76
72
-
Optional primitive types are wrapped in a `param.Opt[T]`. Use the provided constructors set `param.Opt[T]` fields such as `stainlessv0.String(string)`, `stainlessv0.Int(int64)`, etc.
73
-
74
-
Optional primitives, maps, slices and structs and string enums (represented as `string`) always feature the
75
-
tag <code>\`json:"...,omitzero"\`</code>. Their zero values are considered omitted.
76
-
77
-
Any non-nil slice of length zero will serialize as an empty JSON array, `"[]"`. Similarly, any non-nil map with length zero with serialize as an empty JSON object, `"{}"`.
78
-
79
-
To send `null` instead of an `param.Opt[T]`, use `param.NullOpt[T]()`.
80
-
To send `null` instead of a struct, use `param.NullObj[T]()`, where `T` is a struct.
81
-
To send a custom value instead of a struct, use `param.OverrideObj[T](value)`.
77
+
Optional primitive types are wrapped in a `param.Opt[T]`. These fields can be set with the provided constructors, `stainlessv0.String(string)`, `stainlessv0.Int(int64)`, etc.
82
78
83
-
To override request structs contain a `.WithExtraFields(map[string]any)` method which can be used to
84
-
send non-conforming fields in the request body. Extra fields overwrite any struct fields with a matching
85
-
key, so only use with trusted data.
79
+
Any `param.Opt[T]`, map, slice, struct or string enum uses the
80
+
tag <code>\`json:"...,omitzero"\`</code>. Its zero value is considered omitted.
0 commit comments