Skip to content

Commit 0de0892

Browse files
committed
update noSerdeLayer
1 parent 97b4817 commit 0de0892

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

fern/products/sdks/pages/typescript/configuration.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ groups:
1818
1919
## SDK configuration options
2020
21-
<ParamField path="outputSourceFiles" type="boolean" default="false">
21+
<ParamField path="outputSourceFiles" type="boolean" default="true">
2222
When enabled, the generator outputs raw TypeScript files. When disabled (the default), outputs `.js` and `d.ts` files.
2323

2424
<Note>This only applies when dumping code locally. This configuration is ignored when publishing to Github or npm.</Note>
@@ -344,20 +344,19 @@ By default, names are based on the organization and API names in the Fern Defini
344344

345345
</ParamField>
346346

347-
<ParamField path="noSerdeLayer" type="boolean" default="false">
348-
By default, the generated client includes a layer for serializing requests and deserializing responses. This has three benefits:
347+
<ParamField path="noSerdeLayer" type="boolean" default="true">
348+
349+
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:
349352

350353
1. The client validates requests and response at runtime (client-side).
351354

352355
1. The client can support complex types like `Date` and `Set`.
353356

354357
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`.
359359

360-
361360
</ParamField>
362361

363362
<ParamField path="retainOriginalCasing" type="boolean" default="false">

0 commit comments

Comments
 (0)