0.35.17
(fix): Fix generated code for set-typed request bodies and response values. The
Swift SDK represents set as JSONValue, so set example values now render
as JSONValue literals (e.g. JSONValue.array([...])) in snippets and wire
tests instead of being dropped or emitted as untyped Swift array literals.
(fix): Fix wire tests for endpoints that return an enum. The expected-response value
is now referenced through its enum type (e.g. WeatherReport.sunny) rather
than via shorthand (.sunny), which has no contextual type to resolve
against when the response itself is an enum.
(fix): Fix JSON encoding/decoding of maps keyed by a non-String type (e.g. a
string enum or an undiscriminated union). Swift only serializes a
Dictionary as a JSON object when its key is String/Int or conforms to
CodingKeyRepresentable; otherwise it falls back to a JSON array, which
fails to round-trip object payloads. The generator now emits a
CodingKeyRepresentable conformance for enum and undiscriminated-union types
used as map keys. The conformance is gated with @available (macOS 12.3+,
iOS 15.4+, tvOS 15.4+, watchOS 8.5+) to match the platforms where
Dictionary’s Codable conformance uses CodingKeyRepresentable, so the
generated SDK keeps compiling on its existing deployment targets.
(fix): Fix generated code and snippets for allow-multiple query parameters. These
parameters are now typed as arrays in endpoint method signatures (e.g.
[String], [Nullable<String>]) and their example values render as arrays,
so the generated SDK, snippets, and wire tests compile correctly.
(fix): Fix bigint values rendering as empty in dynamic snippets. They are now
emitted as string literals, matching the String type used for bigints.