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/guides/configure-global-headers.mdx
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ If you'd like to see this feature, please upvote [this issue](https://github.com
79
79
80
80
For OpenAPI specifications, you can configure global headers in two ways:
81
81
82
-
### Method 1: OpenAPI Spec Extension
82
+
#### Method 1: OpenAPI Spec Extension
83
83
84
84
Add global headers directly to your OpenAPI spec using the `x-fern-global-headers` extension to label additional headers as global or to alias the names of global headers:
85
85
@@ -91,7 +91,7 @@ x-fern-global-headers:
91
91
optional: true
92
92
```
93
93
94
-
### Method 2: `generators.yml` Configuration
94
+
#### Method 2: `generators.yml` Configuration
95
95
96
96
Alternatively, you can add headers to the `api` block in your `generators.yml` file:
97
97
@@ -107,18 +107,19 @@ api:
107
107
type: optional<string>
108
108
```
109
109
110
-
For more information, see the [`generators.yml` reference documentation](/sdks/reference/generators-yml#apiheaders).
110
+
For more information, see the [`generators.yml` reference documentation](/sdks/reference/generators-yml#headers).
111
111
112
-
#### Client con
112
+
#### Client code
113
113
114
-
Both of the above configurations produces the same client code:
114
+
Both of the above configurations produce the same client code:
0 commit comments