diff --git a/packages/zod-openapi/.yarn/install-state.gz b/packages/zod-openapi/.yarn/install-state.gz index 7e5cef1c..a937c79b 100644 Binary files a/packages/zod-openapi/.yarn/install-state.gz and b/packages/zod-openapi/.yarn/install-state.gz differ diff --git a/packages/zod-openapi/test/index.test-d.ts b/packages/zod-openapi/test/index.test-d.ts index b09010a0..65ce1290 100644 --- a/packages/zod-openapi/test/index.test-d.ts +++ b/packages/zod-openapi/test/index.test-d.ts @@ -265,7 +265,7 @@ describe('Middleware', () => { }) it('Should infer Env from router middleware', async () => { - const app = new OpenAPIHono<{Variables: { too: Symbol }}>() + const app = new OpenAPIHono<{ Variables: { too: Symbol } }>() app.openapi( createRoute({ method: 'get', @@ -305,7 +305,7 @@ describe('Middleware', () => { }) it('Should infer Env root when no middleware provided', async () => { - const app = new OpenAPIHono<{Variables: { too: Symbol }}>() + const app = new OpenAPIHono<{ Variables: { too: Symbol } }>() app.openapi( createRoute({ method: 'get', diff --git a/packages/zod-openapi/test/index.test.ts b/packages/zod-openapi/test/index.test.ts index 396429a6..bbb1bf43 100644 --- a/packages/zod-openapi/test/index.test.ts +++ b/packages/zod-openapi/test/index.test.ts @@ -1602,7 +1602,7 @@ describe('Named params in nested routes', () => { it('Should return a correct path', async () => { const res = await root.request('/doc') expect(res.status).toBe(200) - const data = await res.json() + const data = (await res.json()) as { paths: string[] } expect(Object.keys(data['paths'])[0]).toBe('/root/{rootId}/sub/{subId}') }) })