@kubb/plugin-zod 4.29.1 → 4.31.1

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.
Files changed (66) hide show
  1. package/dist/components.d.ts +4 -4
  2. package/dist/generators.d.ts +4 -4
  3. package/dist/index.d.ts +2 -2
  4. package/dist/templates/ToZod.source.d.ts +1 -1
  5. package/package.json +9 -8
  6. package/dist/types-Cfvq128m.d.ts +0 -172
  7. package/src/generators/__snapshots__/anyof.ts +0 -15
  8. package/src/generators/__snapshots__/coercion.ts +0 -15
  9. package/src/generators/__snapshots__/coercionDates.ts +0 -15
  10. package/src/generators/__snapshots__/coercionNumbers.ts +0 -15
  11. package/src/generators/__snapshots__/coercionStrings.ts +0 -15
  12. package/src/generators/__snapshots__/createItemUnionWithReadOnly.ts +0 -34
  13. package/src/generators/__snapshots__/createItemUnionWithReadOnly_wrapOutput.ts +0 -34
  14. package/src/generators/__snapshots__/createPet.ts +0 -22
  15. package/src/generators/__snapshots__/createPetWithUnknownTypeAny.ts +0 -13
  16. package/src/generators/__snapshots__/createPetWithUnknownTypeUnknown.ts +0 -22
  17. package/src/generators/__snapshots__/createPetWithUnknownTypeUnknown_wrapOutput.ts +0 -29
  18. package/src/generators/__snapshots__/createPetWithUnknownTypeUnknown_wrapOutput_entire_.ts +0 -30
  19. package/src/generators/__snapshots__/createPet_wrapOutput.ts +0 -29
  20. package/src/generators/__snapshots__/deletePet.ts +0 -22
  21. package/src/generators/__snapshots__/deletePet_wrapOutput.ts +0 -22
  22. package/src/generators/__snapshots__/discriminator.ts +0 -36
  23. package/src/generators/__snapshots__/enumBooleanLiteral.ts +0 -7
  24. package/src/generators/__snapshots__/enumNamesType.ts +0 -7
  25. package/src/generators/__snapshots__/enumNullable.ts +0 -7
  26. package/src/generators/__snapshots__/enumSingleLiteral.ts +0 -7
  27. package/src/generators/__snapshots__/enumVarNamesType.ts +0 -7
  28. package/src/generators/__snapshots__/example.ts +0 -9
  29. package/src/generators/__snapshots__/exclusiveNumbers.ts +0 -14
  30. package/src/generators/__snapshots__/getPets.ts +0 -22
  31. package/src/generators/__snapshots__/getPetsWithQueryFilter_wrapOutput_all_.ts +0 -101
  32. package/src/generators/__snapshots__/getPets_wrapOutput.ts +0 -29
  33. package/src/generators/__snapshots__/imageNullable.ts +0 -7
  34. package/src/generators/__snapshots__/mixedValueTypeConst.ts +0 -14
  35. package/src/generators/__snapshots__/nullable.ts +0 -11
  36. package/src/generators/__snapshots__/nullableString.ts +0 -7
  37. package/src/generators/__snapshots__/nullableStringUuid.ts +0 -7
  38. package/src/generators/__snapshots__/nullableStringWithAnyOf.ts +0 -7
  39. package/src/generators/__snapshots__/numberValueConst.ts +0 -14
  40. package/src/generators/__snapshots__/oneof.ts +0 -14
  41. package/src/generators/__snapshots__/operations.ts +0 -106
  42. package/src/generators/__snapshots__/optionalPetInfer.ts +0 -13
  43. package/src/generators/__snapshots__/optionalPetTyped.ts +0 -12
  44. package/src/generators/__snapshots__/order.ts +0 -14
  45. package/src/generators/__snapshots__/orderDateTyeString.ts +0 -10
  46. package/src/generators/__snapshots__/orderDateTypeFalse.ts +0 -14
  47. package/src/generators/__snapshots__/orderDateTypeString.ts +0 -14
  48. package/src/generators/__snapshots__/pet.ts +0 -15
  49. package/src/generators/__snapshots__/petArray.ts +0 -14
  50. package/src/generators/__snapshots__/petCoercion.ts +0 -15
  51. package/src/generators/__snapshots__/petTupleObject.ts +0 -14
  52. package/src/generators/__snapshots__/petV4.ts +0 -15
  53. package/src/generators/__snapshots__/petV4Guid.ts +0 -15
  54. package/src/generators/__snapshots__/petWithMapper.ts +0 -15
  55. package/src/generators/__snapshots__/pets.ts +0 -14
  56. package/src/generators/__snapshots__/queryAllDefaulted.ts +0 -19
  57. package/src/generators/__snapshots__/queryAllDefaulted_wrapOutput.ts +0 -19
  58. package/src/generators/__snapshots__/recursive.ts +0 -10
  59. package/src/generators/__snapshots__/showPetById.ts +0 -22
  60. package/src/generators/__snapshots__/showPetById_wrapOutput.ts +0 -29
  61. package/src/generators/__snapshots__/stringValueConst.ts +0 -14
  62. package/src/generators/__snapshots__/toy.ts +0 -13
  63. package/src/generators/__snapshots__/unionWithReadOnly.ts +0 -28
  64. package/src/generators/__snapshots__/updateItemUnionWithReadOnly.ts +0 -34
  65. package/src/generators/__snapshots__/updateItemUnionWithReadOnly_wrapOutput.ts +0 -34
  66. package/src/generators/__snapshots__/uuidSchema.ts +0 -7
@@ -1,7 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const enumSingleLiteral = z.literal(0)
@@ -1,7 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const enumVarNamesType = z.union([z.literal(0), z.literal(1)])
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const example = z.object({
8
- nestedExamples: z.optional(z.lazy(() => example)),
9
- })
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const exclusiveNumbers = z.object({
8
- exclusiveMin: z.optional(z.number().gt(0)),
9
- exclusiveMax: z.optional(z.number().lt(10)),
10
- exclusiveRange: z.number().gt(0.01).lt(9.99),
11
- strictMinExclusiveMaxRange: z.optional(z.number().min(0).lt(1000)),
12
- strictMaxExclusiveMinRange: z.optional(z.number().max(1000).gt(0)),
13
- exclusiveIntRange: z.optional(z.number().int().gt(0).lt(9)),
14
- })
@@ -1,22 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const listPetsQueryParams = z.object({
8
- limit: z.optional(z.string().describe('How many items to return at one time (max 100)')),
9
- offset: z.coerce.number().int().default(0),
10
- })
11
-
12
- /**
13
- * @description A paged array of pets
14
- */
15
- export const listPets200 = z.lazy(() => pets)
16
-
17
- /**
18
- * @description unexpected error
19
- */
20
- export const listPetsError = z.lazy(() => error)
21
-
22
- export const listPetsQueryResponse = z.lazy(() => listPets200)
@@ -1,101 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const showPetByIdPathParams = z
8
- .object({
9
- petId: z
10
- .string()
11
- .describe('The id of the pet to retrieve')
12
- .openapi({ examples: [{ description: 'The id of the pet to retrieve', type: 'string' }] }),
13
- testId: z
14
- .string()
15
- .describe('The id of the pet to retrieve')
16
- .openapi({ examples: [{ description: 'The id of the pet to retrieve', type: 'string' }] }),
17
- })
18
- .openapi({
19
- examples: [
20
- {
21
- type: 'object',
22
- required: ['petId', 'testId'],
23
- properties: {
24
- petId: { description: 'The id of the pet to retrieve', type: 'string' },
25
- testId: { description: 'The id of the pet to retrieve', type: 'string' },
26
- },
27
- },
28
- ],
29
- })
30
-
31
- export const showPetByIdQueryParams = z
32
- .object({
33
- queryFilter: z.optional(
34
- z
35
- .string()
36
- .optional()
37
- .transform((val) => (val ? val.split(',') : undefined))
38
- .pipe(z.array(z.enum(['DOGS', 'CATS', 'RABBITS'])).describe('A string array query parameter example')),
39
- ),
40
- })
41
- .optional()
42
- .openapi({
43
- examples: [
44
- {
45
- type: 'object',
46
- required: [],
47
- properties: {
48
- queryFilter: { description: 'A string array query parameter example', type: 'array', items: { type: 'string', enum: ['DOGS', 'CATS', 'RABBITS'] } },
49
- },
50
- },
51
- ],
52
- })
53
-
54
- /**
55
- * @description Expected response to a valid request
56
- */
57
- export const showPetById200 = z
58
- .lazy(() => pet)
59
- .openapi({
60
- examples: [
61
- {
62
- $ref: '#/components/schemas/Pet',
63
- type: 'object',
64
- required: ['id', 'name'],
65
- properties: { id: { type: 'integer', format: 'int64' }, name: { type: 'string' }, tag: { type: 'string' } },
66
- },
67
- ],
68
- })
69
-
70
- /**
71
- * @description unexpected error
72
- */
73
- export const showPetByIdError = z
74
- .lazy(() => error)
75
- .openapi({
76
- examples: [
77
- {
78
- $ref: '#/components/schemas/Error',
79
- type: 'object',
80
- required: ['code', 'message'],
81
- properties: { code: { type: 'integer', format: 'int32' }, message: { type: 'string' } },
82
- },
83
- ],
84
- })
85
-
86
- export const showPetByIdQueryResponse = z
87
- .lazy(() => showPetById200)
88
- .openapi({
89
- examples: [
90
- {
91
- oneOf: [
92
- {
93
- $ref: 'showPetById200',
94
- type: 'object',
95
- required: ['id', 'name'],
96
- properties: { id: { type: 'integer', format: 'int64' }, name: { type: 'string' }, tag: { type: 'string' } },
97
- },
98
- ],
99
- },
100
- ],
101
- })
@@ -1,29 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import { z } from '@hono/zod-openapi'
6
-
7
- export const listPetsQueryParams = z.object({
8
- limit: z.optional(z.string().describe('How many items to return at one time (max 100)')),
9
- offset: z.coerce.number().int().default(0),
10
- })
11
-
12
- /**
13
- * @description A paged array of pets
14
- */
15
- export const listPets200 = z.lazy(() => pets)
16
-
17
- /**
18
- * @description unexpected error
19
- */
20
- export const listPetsError = z
21
- .lazy(() => error)
22
- .openapi({
23
- examples: [
24
- { sample: { summary: 'A sample error', value: { code: 1, message: 'A sample error message' } } },
25
- { other_example: { summary: 'Another sample error', value: { code: 2, message: 'A totally specific message' } } },
26
- ],
27
- })
28
-
29
- export const listPetsQueryResponse = z.lazy(() => listPets200)
@@ -1,7 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const image = z.string().nullable()
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- /**
8
- * @description This probably should fail miserably
9
- */
10
- export const mixedValueTypeConst = z
11
- .object({
12
- foobar: z.literal('foobar'),
13
- })
14
- .describe('This probably should fail miserably')
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const nullable = z
8
- .object({
9
- foo: z.string().nullish(),
10
- })
11
- .nullable()
@@ -1,7 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const nullableString = z.string().nullable()
@@ -1,7 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const nullableStringUuid = z.string().uuid().nullable()
@@ -1,7 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const nullableStringWithAnyOf = z.union([z.string(), z.null()])
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- /**
8
- * @description its value is equal to the value of the keyword
9
- */
10
- export const numberValueConst = z
11
- .object({
12
- foobar: z.literal(42),
13
- })
14
- .describe('its value is equal to the value of the keyword')
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const test = z.union([
8
- z.object({
9
- propertyA: z.optional(z.string()),
10
- }),
11
- z.object({
12
- propertyA: z.optional(z.string()),
13
- }),
14
- ])
@@ -1,106 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import type * as z from 'zod'
6
- import {
7
- createPetsMutationRequest,
8
- createPets201,
9
- createPetsMutationResponse,
10
- deletePet400,
11
- deletePetMutationResponse,
12
- deletePetPathParams,
13
- deletePetHeaderParams,
14
- listPets200,
15
- listPetsQueryResponse,
16
- listPetsQueryParams,
17
- showPetById200,
18
- showPetByIdQueryResponse,
19
- showPetByIdPathParams,
20
- } from './showPetById'
21
-
22
- export type OperationSchema = {
23
- readonly request: z.ZodTypeAny | undefined
24
- readonly parameters: {
25
- readonly path: z.ZodTypeAny | undefined
26
- readonly query: z.ZodTypeAny | undefined
27
- readonly header: z.ZodTypeAny | undefined
28
- }
29
- readonly responses: {
30
- readonly [status: number]: z.ZodTypeAny
31
- readonly default: z.ZodTypeAny
32
- }
33
- readonly errors: {
34
- readonly [status: number]: z.ZodTypeAny
35
- }
36
- }
37
-
38
- export type OperationsMap = Record<string, OperationSchema>
39
-
40
- export const operations = {
41
- listPets: {
42
- request: undefined,
43
- parameters: {
44
- path: undefined,
45
- query: listPetsQueryParams,
46
- header: undefined,
47
- },
48
- responses: {
49
- 200: listPets200,
50
- default: listPetsQueryResponse,
51
- },
52
- errors: {},
53
- },
54
- createPets: {
55
- request: createPetsMutationRequest,
56
- parameters: {
57
- path: undefined,
58
- query: undefined,
59
- header: undefined,
60
- },
61
- responses: {
62
- 201: createPets201,
63
- default: createPetsMutationResponse,
64
- },
65
- errors: {},
66
- },
67
- showPetById: {
68
- request: undefined,
69
- parameters: {
70
- path: showPetByIdPathParams,
71
- query: undefined,
72
- header: undefined,
73
- },
74
- responses: {
75
- 200: showPetById200,
76
- default: showPetByIdQueryResponse,
77
- },
78
- errors: {},
79
- },
80
- deletePet: {
81
- request: undefined,
82
- parameters: {
83
- path: deletePetPathParams,
84
- query: undefined,
85
- header: deletePetHeaderParams,
86
- },
87
- responses: {
88
- 400: deletePet400,
89
- default: deletePetMutationResponse,
90
- },
91
- errors: {
92
- 400: deletePet400,
93
- },
94
- },
95
- } as const
96
-
97
- export const paths = {
98
- '/pets': {
99
- get: operations['listPets'],
100
- post: operations['createPets'],
101
- },
102
- '/pets/{petId}': {
103
- get: operations['showPetById'],
104
- delete: operations['deletePet'],
105
- },
106
- } as const
@@ -1,13 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const optionalPet = z.object({
8
- id: z.optional(z.number().int()),
9
- name: z.optional(z.string()),
10
- tag: z.optional(z.string()),
11
- })
12
-
13
- export type OptionalPet = z.infer<typeof optionalPet>
@@ -1,12 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
- import { ToZod } from './test/.kubb/ToZod'
7
-
8
- export const optionalPet = z.object({
9
- id: z.optional(z.number().int()),
10
- name: z.optional(z.string()),
11
- tag: z.optional(z.string()),
12
- }) as unknown as ToZod<OptionalPet>
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const order = z.object({
8
- id: z.optional(z.number().int()),
9
- petId: z.optional(z.number().int()),
10
- quantity: z.optional(z.number().int()),
11
- shipDate: z.optional(z.date()),
12
- status: z.optional(z.enum(['placed', 'approved', 'delivered']).describe('Order Status')),
13
- complete: z.optional(z.boolean()),
14
- })
@@ -1,10 +0,0 @@
1
- import * as z from 'zod'
2
-
3
- export const order = z.object({
4
- id: z.number().int().optional(),
5
- petId: z.number().int().optional(),
6
- quantity: z.number().int().optional(),
7
- shipDate: z.string().datetime().optional(),
8
- status: z.enum(['placed', 'approved', 'delivered']).describe('Order Status').optional(),
9
- complete: z.boolean().optional(),
10
- })
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const order = z.object({
8
- id: z.optional(z.number().int()),
9
- petId: z.optional(z.number().int()),
10
- quantity: z.optional(z.number().int()),
11
- shipDate: z.optional(z.string()),
12
- status: z.optional(z.enum(['placed', 'approved', 'delivered']).describe('Order Status')),
13
- complete: z.optional(z.boolean()),
14
- })
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const order = z.object({
8
- id: z.optional(z.number().int()),
9
- petId: z.optional(z.number().int()),
10
- quantity: z.optional(z.number().int()),
11
- shipDate: z.optional(z.string().datetime()),
12
- status: z.optional(z.enum(['placed', 'approved', 'delivered']).describe('Order Status')),
13
- complete: z.optional(z.boolean()),
14
- })
@@ -1,15 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const pet = z.object({
8
- id: z.number().int(),
9
- name: z.string(),
10
- date: z.optional(z.date()),
11
- uuid: z.optional(z.string().uuid()),
12
- email: z.optional(z.string().email()),
13
- pattern: z.optional(z.string().regex(/^[a-zA-Z0-9]{3}$/)),
14
- tag: z.optional(z.string().min(5).max(100)),
15
- })
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- /**
8
- * @description List of Pet object
9
- */
10
- export const petArray = z
11
- .array(z.lazy(() => pet))
12
- .min(1)
13
- .max(3)
14
- .describe('List of Pet object')
@@ -1,15 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const pet = z.object({
8
- id: z.coerce.number().int(),
9
- name: z.coerce.string(),
10
- date: z.optional(z.coerce.date()),
11
- uuid: z.optional(z.coerce.string().uuid()),
12
- email: z.optional(z.coerce.string().email()),
13
- pattern: z.optional(z.coerce.string().regex(/^[a-zA-Z0-9]{3}$/)),
14
- tag: z.optional(z.coerce.string().min(5).max(100)),
15
- })
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- /**
8
- * @description Tuple of exact length 2 nested in an object
9
- */
10
- export const petTupleObject = z
11
- .object({
12
- tupleProperty: z.optional(z.tuple([z.string(), z.string()])),
13
- })
14
- .describe('Tuple of exact length 2 nested in an object')
@@ -1,15 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const pet = z.object({
8
- id: z.int(),
9
- name: z.string(),
10
- date: z.optional(z.date()),
11
- uuid: z.optional(z.uuid()),
12
- email: z.optional(z.email()),
13
- pattern: z.optional(z.string().regex(/^[a-zA-Z0-9]{3}$/)),
14
- tag: z.optional(z.string().min(5).max(100)),
15
- })
@@ -1,15 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const pet = z.object({
8
- id: z.int(),
9
- name: z.string(),
10
- date: z.optional(z.date()),
11
- uuid: z.optional(z.guid()),
12
- email: z.optional(z.email()),
13
- pattern: z.optional(z.string().regex(/^[a-zA-Z0-9]{3}$/)),
14
- tag: z.optional(z.string().min(5).max(100)),
15
- })
@@ -1,15 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const pet = z.object({
8
- id: z.number().int(),
9
- name: z.string().email(),
10
- date: z.optional(z.date()),
11
- uuid: z.optional(z.string().uuid()),
12
- email: z.optional(z.string().email()),
13
- pattern: z.optional(z.string().regex(/^[a-zA-Z0-9]{3}$/)),
14
- tag: z.optional(z.string().min(5).max(100)),
15
- })
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
- import { ToZod } from './test/.kubb/ToZod'
7
-
8
- export const pets = z.array(
9
- z.object({
10
- id: z.number().int(),
11
- name: z.string(),
12
- tag: z.optional(z.string()),
13
- }),
14
- ) as unknown as ToZod<Pets>
@@ -1,19 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const getThingsQueryParams = z.object({
8
- limit: z.coerce.number().int().min(1).max(100).default(100).describe('Maximum number of things to return'),
9
- skip: z.coerce.number().int().min(0).default(0).describe('Number of things to skip'),
10
- })
11
-
12
- /**
13
- * @description A list of things
14
- */
15
- export const getThings200 = z.object({
16
- items: z.array(z.lazy(() => thing)),
17
- })
18
-
19
- export const getThingsQueryResponse = z.lazy(() => getThings200)
@@ -1,19 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import { z } from '@hono/zod-openapi'
6
-
7
- export const getThingsQueryParams = z.object({
8
- limit: z.coerce.number().int().min(1).max(100).default(100).describe('Maximum number of things to return'),
9
- skip: z.coerce.number().int().min(0).default(0).describe('Number of things to skip'),
10
- })
11
-
12
- /**
13
- * @description A list of things
14
- */
15
- export const getThings200 = z.object({
16
- items: z.array(z.lazy(() => thing)),
17
- })
18
-
19
- export const getThingsQueryResponse = z.lazy(() => getThings200)
@@ -1,10 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import * as z from 'zod'
6
-
7
- export const example = z.object({
8
- name: z.string(),
9
- children: z.array(z.lazy(() => example)),
10
- })