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
Copy file name to clipboardExpand all lines: fern/products/sdks/overview/python/configuration.mdx
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,30 @@ groups:
15
15
config:
16
16
package_name: "your_package"
17
17
client:
18
-
class_name: "YourClient"
18
+
class_name: "YourClient"
19
+
```
20
+
21
+
## Extension Headers
22
+
23
+
You can configure SDK variables in your OpenAPI spec using the `x-fern-sdk-variables` extension. These variables will be injected into the SDK client constructor.
24
+
25
+
For example, to add a `project_id` variable that gets automatically injected into path parameters:
26
+
27
+
```yaml
28
+
components:
29
+
x-fern-sdk-variables:
30
+
project_id:
31
+
type: string
32
+
description: The ID of the project
33
+
pattern: "^proj_[a-zA-Z0-9]+$"
34
+
```
35
+
36
+
The variable will be available in the client constructor:
0 commit comments