From 925955d3a6001edc920873ef9f46293b3d8c1739 Mon Sep 17 00:00:00 2001 From: Stijn Van Hulle Date: Mon, 25 Mar 2024 00:00:10 +0100 Subject: [PATCH] chore: update test --- .../src/__snapshots__/OperationGenerator.test.tsx.snap | 4 ++-- .../src/components/__snapshots__/Schema/showPetById.ts | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/swagger-zod/src/__snapshots__/OperationGenerator.test.tsx.snap b/packages/swagger-zod/src/__snapshots__/OperationGenerator.test.tsx.snap index 53433ef0c..1404cb927 100644 --- a/packages/swagger-zod/src/__snapshots__/OperationGenerator.test.tsx.snap +++ b/packages/swagger-zod/src/__snapshots__/OperationGenerator.test.tsx.snap @@ -49,7 +49,7 @@ import { Pets } from "./Pets"; import { Error } from "./Error"; -export const ListPetsQueryParams = z.object({ "limit": z.string().describe("How many items to return at one time (max 100)").optional() }).optional().optional(); +export const ListPetsQueryParams = z.object({ "limit": z.string().describe("How many items to return at one time (max 100)").optional() }).optional(); /** * @description A paged array of pets @@ -76,7 +76,7 @@ import { Pet } from "./Pet"; import { Error } from "./Error"; -export const ShowPetByIdPathParams = z.object({ "petId": z.string().describe("The id of the pet to retrieve"), "testId": z.string().describe("The id of the pet to retrieve") }).optional(); +export const ShowPetByIdPathParams = z.object({ "petId": z.string().describe("The id of the pet to retrieve"), "testId": z.string().describe("The id of the pet to retrieve") }); /** * @description Expected response to a valid request diff --git a/packages/swagger-zod/src/components/__snapshots__/Schema/showPetById.ts b/packages/swagger-zod/src/components/__snapshots__/Schema/showPetById.ts index 4fdfd5368..0f0abb0e0 100644 --- a/packages/swagger-zod/src/components/__snapshots__/Schema/showPetById.ts +++ b/packages/swagger-zod/src/components/__snapshots__/Schema/showPetById.ts @@ -1,6 +1,7 @@ -export const ShowPetByIdPathParams = z - .object({ petId: z.string().describe('The id of the pet to retrieve'), testId: z.string().describe('The id of the pet to retrieve') }) - .optional() +export const ShowPetByIdPathParams = z.object({ + petId: z.string().describe('The id of the pet to retrieve'), + testId: z.string().describe('The id of the pet to retrieve'), +}) /** * @description Expected response to a valid request