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
The chunk size to use (if any) when processing a response bytes stream within `iter_bytes` or `aiter_bytes` results in: `for chunk in response.iter_bytes(chunk_size=<default_bytes_stream_chunk_size>):`
When enabled, the python generator will not run Black formatting in the generated code. Black is slow so this can potentially speed up code generation quite a bit.
<Warning>This changes your declared python dependency, which is not meant to be done often if at all. This is a last resort if any dependencies force you to change your version requirements.</Warning>
By default, the generator generates a client that times out after 60 seconds. You can customize this value by providing a different number or setting to `infinity` to get rid of timeouts.
Whether or not to generate TypedDicts instead of Pydantic Models for file upload request objects. Note that this flag was only introduced due to an oversight in the `use_typeddict_requests` flag implementation; it should be removed in the future.
An extension field in OpenAPI specs that allows you to define variables for your SDK client. These variables will be available in the generated client constructor. Variables must be defined in the components section of your OpenAPI spec:
140
+
141
+
```yaml
142
+
components:
143
+
x-fern-sdk-variables:
144
+
project_id:
145
+
type: string
146
+
description: "The project ID"
147
+
pattern: "^proj_[a-zA-Z0-9]+$"
148
+
```
149
+
150
+
Once defined, you can reference these variables in your path parameters with the `x-fern-sdk-variable` extension:
151
+
152
+
```yaml
153
+
/v1/connect/{project_id}/accounts:
154
+
parameters:
155
+
- name: project_id
156
+
in: path
157
+
required: true
158
+
schema:
159
+
type: string
160
+
pattern: "^proj_[a-zA-Z0-9]+$"
161
+
x-fern-sdk-variable: project_id
162
+
```
163
+
164
+
The generated SDK will handle injecting these variables into API calls automatically when they are provided to the client constructor.
0 commit comments