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: docs/openapi-ts/configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ export default defineConfig([
67
67
68
68
You must provide an input so we can load your OpenAPI specification.
69
69
70
-
The input can be a string path, URL, API registry shorthand, an object containing any of these, or an object representing an OpenAPI specification. Hey API supports all valid OpenAPI versions and file formats.
70
+
The input can be a string path, URL, [API registry](/openapi-ts/configuration/input#api-registry) shorthand, an object containing any of these, or an object representing an OpenAPI specification. Hey API supports all valid OpenAPI versions and file formats.
71
71
72
72
You can learn more on the [Input](/openapi-ts/configuration/input) page.
Copy file name to clipboardExpand all lines: docs/openapi-ts/configuration/input.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ You must provide an input so we can load your OpenAPI specification.
9
9
10
10
## Input
11
11
12
-
The input can be a string path, URL, API registry shorthand, an object containing any of these, or an object representing an OpenAPI specification. Hey API supports all valid OpenAPI versions and file formats.
12
+
The input can be a string path, URL, [API registry](#api-registry), an object containing any of these, or an object representing an OpenAPI specification. Hey API supports all valid OpenAPI versions and file formats.
input:'hey-api/backend', // sign up at app.heyapi.dev
223
+
output:'src/client',
224
+
plugins: [
225
+
// ...other plugins
226
+
{
227
+
name:'zod',
228
+
dates: {
229
+
local:true, // [!code ++]
230
+
},
231
+
},
232
+
],
233
+
};
234
+
```
235
+
236
+
:::
237
+
178
238
## Metadata
179
239
180
240
It's often useful to associate a schema with some additional [metadata](https://zod.dev/metadata) for documentation, code generation, AI structured outputs, form validation, and other purposes. If this is your use case, you can set `metadata` to `true` to generate additional metadata about schemas.
input:'hey-api/backend', // sign up at app.heyapi.dev
233
+
output:'src/client',
234
+
plugins: [
235
+
// ...other plugins
236
+
{
237
+
name:'zod',
238
+
compatibilityVersion:'mini',
239
+
dates: {
240
+
local:true, // [!code ++]
241
+
},
242
+
},
243
+
],
244
+
};
245
+
```
246
+
247
+
:::
248
+
181
249
## Metadata
182
250
183
251
It's often useful to associate a schema with some additional [metadata](https://zod.dev/metadata) for documentation, code generation, AI structured outputs, form validation, and other purposes. If this is your use case, you can set `metadata` to `true` to generate additional metadata about schemas.
@@ -198,6 +266,7 @@ export default {
198
266
// ...other plugins
199
267
{
200
268
name:'zod',
269
+
compatibilityVersion:'mini',
201
270
metadata:true, // [!code ++]
202
271
},
203
272
],
@@ -224,6 +293,7 @@ export default {
224
293
// ...other plugins
225
294
{
226
295
name:'zod',
296
+
compatibilityVersion:'mini',
227
297
types: {
228
298
infer:false, // by default, no `z.infer` types [!code ++]
input:'hey-api/backend', // sign up at app.heyapi.dev
233
+
output:'src/client',
234
+
plugins: [
235
+
// ...other plugins
236
+
{
237
+
name:'zod',
238
+
compatibilityVersion:3,
239
+
dates: {
240
+
local:true, // [!code ++]
241
+
},
242
+
},
243
+
],
244
+
};
245
+
```
246
+
247
+
:::
248
+
181
249
## Metadata
182
250
183
251
It's often useful to associate a schema with some additional [metadata](https://v3.zod.dev/?id=describe) for documentation, code generation, AI structured outputs, form validation, and other purposes. If this is your use case, you can set `metadata` to `true` to generate additional metadata about schemas.
@@ -196,6 +264,7 @@ export default {
196
264
// ...other plugins
197
265
{
198
266
name:'zod',
267
+
compatibilityVersion:3,
199
268
metadata:true, // [!code ++]
200
269
},
201
270
],
@@ -222,6 +291,7 @@ export default {
222
291
// ...other plugins
223
292
{
224
293
name:'zod',
294
+
compatibilityVersion:3,
225
295
types: {
226
296
infer:false, // by default, no `z.infer` types [!code ++]
0 commit comments