Skip to content

Commit 49a8731

Browse files
committed
add c# config
1 parent 86dcd92 commit 49a8731

File tree

1 file changed

+70
-2
lines changed

1 file changed

+70
-2
lines changed

fern/products/sdks/overview/dotnet/configuration.mdx

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,74 @@ title: .NET Configuration
33
description: Configuration options for the Fern .NET SDK.
44
---
55

6-
Discover how to configure the Fern .NET SDK for your project.
6+
You can customize the behavior of the C#/.NET SDK generator in `generators.yml`:
77

8-
<Warning>This page is a WIP, please refer to our previous [documentation](https://buildwithfern.com/learn/sdks/reference/configuration).</Warning>
8+
```yml {7-8}
9+
default-group: local
10+
groups:
11+
local:
12+
generators:
13+
- name: fernapi/fern-typescript-sdk
14+
version: <Markdown src="/snippets/version-number.mdx"/>
15+
config:
16+
client_class_name: YourApiClient
17+
```
18+
19+
## SDK configuration options
20+
21+
<ParamField path="namespace" type="string" required={false}>
22+
</ParamField>
23+
24+
<ParamField path="base-api-exception-class-name" type="string" required={false}>
25+
</ParamField>
26+
27+
<ParamField path="base-exception-class-name" type="string" required={false}>
28+
</ParamField>
29+
30+
<ParamField path="client-class-name" type="string" required={false}>
31+
</ParamField>
32+
33+
<ParamField path="environment-class-name" type="string" required={false}>
34+
</ParamField>
35+
36+
<ParamField path="exported-client-class-name" type="string" required={false}>
37+
</ParamField>
38+
39+
<ParamField path="explicit-namespaces" type="boolean" required={false}>
40+
</ParamField>
41+
42+
<ParamField path="inline-path-parameters" type="boolean" required={false}>
43+
</ParamField>
44+
45+
<ParamField path="read-only-memory-types" type="List<string>" required={false}>
46+
</ParamField>
47+
48+
<ParamField path="root-namespace-for-core-classes" type="boolean" required={false}>
49+
</ParamField>
50+
51+
<ParamField path="use-discriminated-unions" type="boolean" required={false}>
52+
</ParamField>
53+
54+
<ParamField path="root-client-class-access" type="'public' | 'internal'" required={false}>
55+
</ParamField>
56+
57+
<ParamField path="custom-pager-name" type="string" required={false}>
58+
</ParamField>
59+
60+
<ParamField path="enable-forward-compatible-enums" type="boolean" required={false}>
61+
</ParamField>
62+
63+
<ParamField path="additional-properties" type="boolean" required={false}>
64+
</ParamField>
65+
66+
<ParamField path="generate-error-types" type="boolean" required={false}>
67+
</ParamField>
68+
69+
<ParamField path="package-id" type="string" required={false}>
70+
</ParamField>
71+
72+
<ParamField path="generate-mock-server-tests" type="boolean" required={false}>
73+
</ParamField>
74+
75+
<ParamField path="include-exception-handler" type="boolean" required={false}>
76+
</ParamField>

0 commit comments

Comments
 (0)