@hey-api/openapi-ts 0.56.2 → 0.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +54 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +53 -53
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3920,7 +3920,21 @@ interface IRResponseObject {
|
|
|
3920
3920
|
interface IRSchemaObject
|
|
3921
3921
|
extends Pick<
|
|
3922
3922
|
JsonSchemaDraft2020_12,
|
|
3923
|
-
'$ref'
|
|
3923
|
+
| '$ref'
|
|
3924
|
+
| 'const'
|
|
3925
|
+
| 'default'
|
|
3926
|
+
| 'deprecated'
|
|
3927
|
+
| 'description'
|
|
3928
|
+
| 'exclusiveMaximum'
|
|
3929
|
+
| 'exclusiveMinimum'
|
|
3930
|
+
| 'maximum'
|
|
3931
|
+
| 'maxItems'
|
|
3932
|
+
| 'maxLength'
|
|
3933
|
+
| 'minimum'
|
|
3934
|
+
| 'minItems'
|
|
3935
|
+
| 'minLength'
|
|
3936
|
+
| 'required'
|
|
3937
|
+
| 'title'
|
|
3924
3938
|
> {
|
|
3925
3939
|
/**
|
|
3926
3940
|
* If the schema is intended to be used as an object property, it can be
|
|
@@ -4207,7 +4221,15 @@ interface Config$1 extends PluginName<'fastify'> {
|
|
|
4207
4221
|
output?: string;
|
|
4208
4222
|
}
|
|
4209
4223
|
|
|
4224
|
+
// import type { IROperationObject, IRSchemaObject } from '../../ir/ir';
|
|
4225
|
+
|
|
4226
|
+
|
|
4210
4227
|
interface Config extends PluginName<'zod'> {
|
|
4228
|
+
/**
|
|
4229
|
+
* Customise the Zod schema name. By default, `z{{name}}` is used,
|
|
4230
|
+
* where `name` is a definition name or an operation name.
|
|
4231
|
+
*/
|
|
4232
|
+
// nameBuilder?: (model: IROperationObject | IRSchemaObject) => string;
|
|
4211
4233
|
/**
|
|
4212
4234
|
* Name of the generated file.
|
|
4213
4235
|
* @default 'zod'
|
package/dist/index.d.ts
CHANGED
|
@@ -3920,7 +3920,21 @@ interface IRResponseObject {
|
|
|
3920
3920
|
interface IRSchemaObject
|
|
3921
3921
|
extends Pick<
|
|
3922
3922
|
JsonSchemaDraft2020_12,
|
|
3923
|
-
'$ref'
|
|
3923
|
+
| '$ref'
|
|
3924
|
+
| 'const'
|
|
3925
|
+
| 'default'
|
|
3926
|
+
| 'deprecated'
|
|
3927
|
+
| 'description'
|
|
3928
|
+
| 'exclusiveMaximum'
|
|
3929
|
+
| 'exclusiveMinimum'
|
|
3930
|
+
| 'maximum'
|
|
3931
|
+
| 'maxItems'
|
|
3932
|
+
| 'maxLength'
|
|
3933
|
+
| 'minimum'
|
|
3934
|
+
| 'minItems'
|
|
3935
|
+
| 'minLength'
|
|
3936
|
+
| 'required'
|
|
3937
|
+
| 'title'
|
|
3924
3938
|
> {
|
|
3925
3939
|
/**
|
|
3926
3940
|
* If the schema is intended to be used as an object property, it can be
|
|
@@ -4207,7 +4221,15 @@ interface Config$1 extends PluginName<'fastify'> {
|
|
|
4207
4221
|
output?: string;
|
|
4208
4222
|
}
|
|
4209
4223
|
|
|
4224
|
+
// import type { IROperationObject, IRSchemaObject } from '../../ir/ir';
|
|
4225
|
+
|
|
4226
|
+
|
|
4210
4227
|
interface Config extends PluginName<'zod'> {
|
|
4228
|
+
/**
|
|
4229
|
+
* Customise the Zod schema name. By default, `z{{name}}` is used,
|
|
4230
|
+
* where `name` is a definition name or an operation name.
|
|
4231
|
+
*/
|
|
4232
|
+
// nameBuilder?: (model: IROperationObject | IRSchemaObject) => string;
|
|
4211
4233
|
/**
|
|
4212
4234
|
* Name of the generated file.
|
|
4213
4235
|
* @default 'zod'
|