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
No serialization/deserialization code is generated by default. The client uses `JSON.parse()` and `JSON.stringify()` instead of the default Serde layer.
350
+
351
+
When `noSerdeLayer: false`, the generated client includes a layer for serializing requests and deserializing responses. This has three benefits:
349
352
350
353
1. The client validates requests and response at runtime (client-side).
351
354
352
355
1. The client can support complex types like `Date` and `Set`.
353
356
354
357
1. The generated types can stray from the wire/JSON representation to be more
355
-
idiomatic. For example, when `noSerdeLayer` is disabled, all properties are `camelCase`,
356
-
even if the server is expecting `snake_case`.
357
-
358
-
When `noSerdeLayer` is enabled, no serialization/deserialization code is generated. The client uses `JSON.parse()` and `JSON.stringify()` instead of the default Serde layer.
358
+
idiomatic. For example, when the Serde layer is enabled (`noSerdeLayer: false`), all properties are `camelCase`, even if the server is expecting `snake_case`.
0 commit comments