@@ -168,7 +168,7 @@ describe("getEndpointsFromOpenAPIDoc", () => {
168168 } ,
169169 ] ) ;
170170 expect ( resolver . getZodSchemas ( ) ) . toStrictEqual ( {
171- Order : `z.object({ id: z.number().int(), petId: z.number().int(), quantity: z.number().int(), shipDate: z.string().datetime({ offset: true }), status: z.enum(["placed", "approved", "delivered"]), complete: z.boolean() }).partial()` ,
171+ Order : `z.object({ id: z.number().int(), petId: z.number().int(), quantity: z.number().int(), shipDate: z.string().datetime({ offset: true }).brand('datetime') , status: z.enum(["placed", "approved", "delivered"]), complete: z.boolean() }).partial()` ,
172172 } ) ;
173173 expect ( resolver [ "compositeZodSchemaData" ] ) . toStrictEqual ( [ ] ) ;
174174 } ) ;
@@ -1691,7 +1691,7 @@ describe("getEndpointsFromOpenAPIDoc", () => {
16911691 FindPetsByTagsResponse : "z.array(Pet)" ,
16921692 FindPetsByTagsTagsParam : "z.array(z.string()).optional()" ,
16931693 GetInventoryResponse : "z.object({}).catchall(z.number().int())" ,
1694- Order : `z.object({ id: z.number().int(), petId: z.number().int(), quantity: z.number().int(), shipDate: z.string().datetime({ offset: true }), status: z.enum(["placed", "approved", "delivered"]), complete: z.boolean() }).partial()` ,
1694+ Order : `z.object({ id: z.number().int(), petId: z.number().int(), quantity: z.number().int(), shipDate: z.string().datetime({ offset: true }).brand('datetime') , status: z.enum(["placed", "approved", "delivered"]), complete: z.boolean() }).partial()` ,
16951695 Pet : `z.object({ id: z.number().int().optional(), name: z.string(), category: Category.optional(), photoUrls: z.array(z.string()), tags: z.array(Tag).optional(), status: z.enum(["available", "pending", "sold"]).optional() })` ,
16961696 Tag : "z.object({ id: z.number().int(), name: z.string() }).partial()" ,
16971697 User : "z.object({ id: z.number().int(), username: z.string(), firstName: z.string(), lastName: z.string(), email: z.string(), password: z.string(), phone: z.string(), userStatus: z.number().int() }).partial()" ,
0 commit comments