@@ -21,6 +21,53 @@ groups:
2121
2222## SDK Configuration Options
2323
24+ <ParamField path="alwaysSendRequiredProperties" type="boolean" required={false} toc={true}>
25+ </ParamField>
26+
27+ <ParamField path="clientConstructorName" type="string" required={false} toc={true}>
28+ </ParamField>
29+
30+ <ParamField path="clientName" type="string" required={false} toc={true}>
31+ </ParamField>
32+
33+ <ParamField path="exportedClientName" type="string" required={false} toc={true}>
34+ </ParamField>
35+
36+ <ParamField path="importPath" type="string" required={false} toc={true}>
37+ Use this option if you plan to depend on the generated Go SDK from within your project, and **not** depend on it as a separate, published Go module.
38+
39+ <Note>If you plan to to distribute the generated Go SDK as a separate, published Go module, use the ` module` configuration option instead.</Note>
40+
41+ You can generate the Go SDK code into a `gen/go/api` package with the following `generators.yml`
42+ configuration :
43+
44+ ` ` ` yaml {7-8}
45+ default-group: local
46+ groups:
47+ local:
48+ generators:
49+ - name: fernapi/fern-go-sdk
50+ version: 0.13.0
51+ config:
52+ importPath: github.com/<YOUR_ORGANIZATION>/<YOUR_REPOSITORY>/generated/go
53+ output:
54+ location: local-file-system
55+ path: ../generated/go
56+ ` ` `
57+ <Info>You must update the `<YOUR_ORGANIZATION>` and `<YOUR_REPOSITORY>` placeholders
58+ with the relevant elements in your `go.mod` path. In this case, the generated Go SDK uses the same `go.mod` path used by the rest of your Go module.</Info>
59+
60+ </ParamField>
61+
62+ <ParamField path="includeLegacyClientOptions" type="boolean" required={false} toc={true}>
63+ </ParamField>
64+
65+ <ParamField path="inlineFileProperties" type="boolean" required={false} toc={true}>
66+ </ParamField>
67+
68+ <ParamField path="inlinePathParameters" type="boolean" required={false} toc={true}>
69+ </ParamField>
70+
2471<ParamField path="module" type="ModuleConfigSchema" required={false} toc={true}>
2572Use this option if you plan to distribute the generated Go SDK as a separate, published Go module.
2673
@@ -79,61 +126,14 @@ replace "github.com/your/sdk" v0.0.0 => "path/to/generated/sdk"
79126
80127</ParamField>
81128
82- <ParamField path="packageName" type="string" required={false} toc={true}>
83- </ParamField>
84-
85- <ParamField path="importPath" type="string" required={false} toc={true}>
86- Use this option if you plan to depend on the generated Go SDK from within your project, and **not** depend on it as a separate, published Go module.
87-
88- <Note>If you plan to to distribute the generated Go SDK as a separate, published Go module, use the `module` configuration option instead.</Note>
89-
90- You can generate the Go SDK code into a `gen/go/api` package with the following `generators.yml`
91- configuration :
92-
93- ` ` ` yaml {7-8}
94- default-group: local
95- groups:
96- local:
97- generators:
98- - name: fernapi/fern-go-sdk
99- version: 0.13.0
100- config:
101- importPath: github.com/<YOUR_ORGANIZATION>/<YOUR_REPOSITORY>/generated/go
102- output:
103- location: local-file-system
104- path: ../generated/go
105- ` ` `
106- <Info>You must update the `<YOUR_ORGANIZATION>` and `<YOUR_REPOSITORY>` placeholders
107- with the relevant elements in your `go.mod` path. In this case, the generated Go SDK uses the same `go.mod` path used by the rest of your Go module.</Info>
108-
109- </ParamField>
110-
111- <ParamField path="alwaysSendRequiredProperties" type="boolean" required={false} toc={true}>
112- </ParamField>
113-
114- <ParamField path="clientConstructorName" type="string" required={false} toc={true}>
115- </ParamField>
116-
117- <ParamField path="clientName" type="string" required={false} toc={true}>
118- </ParamField>
119-
120- <ParamField path="exportedClientName" type="string" required={false} toc={true}>
121- </ParamField>
122-
123- <ParamField path="includeLegacyClientOptions" type="boolean" required={false} toc={true}>
124- </ParamField>
125-
126- <ParamField path="inlinePathParameters" type="boolean" required={false} toc={true}>
127- </ParamField>
128-
129- <ParamField path="inlineFileProperties" type="boolean" required={false} toc={true}>
129+ <ParamField path="packageLayout" type="'flat' | 'nested'" required={false} toc={true}>
130130</ParamField>
131131
132- <ParamField path="packageLayout " type="'flat' | 'nested' " required={false} toc={true}>
132+ <ParamField path="packageName " type="string " required={false} toc={true}>
133133</ParamField>
134134
135135<ParamField path="union" type="'v0' | 'v1'" required={false} toc={true}>
136136</ParamField>
137137
138138<ParamField path="useReaderForBytesRequest" type="boolean" required={false} toc={true}>
139- </ParamField>
139+ </ParamField>
0 commit comments