From 8f0d185d8b99412e08e6e1b659824aab74f20f1c Mon Sep 17 00:00:00 2001 From: Dario Marcato Date: Mon, 12 Jun 2023 19:48:27 -0700 Subject: [PATCH] Remove openapi3-ts exports These exports seem wrong, you can just import directly from the `openapi3-ts` dependency without going through this library. On top of that, they are actually the source of an error when using this project as a dependency in a `yarn` project: ``` Module not found: Can't resolve 'openapi3-ts/oas30' in '[...]/node_modules/@asteasolutions/zod-to-openapi/dist' ``` I believe it's safe to remove them, was there any specific reason why they were added? --- src/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index bc9b18e..7ed9881 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,8 +9,5 @@ export { ZodRequestBody, } from './openapi-registry'; -export * as OpenAPIV3 from 'openapi3-ts/oas30'; -export * as OpenAPIV31 from 'openapi3-ts/oas31'; - export { OpenApiGeneratorV3 } from './v3.0/openapi-generator'; export { OpenApiGeneratorV31 } from './v3.1/openapi-generator';