Skip to content

Commit

Permalink
Remove openapi3-ts exports
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
dmarcato authored Jun 13, 2023
1 parent 86f3092 commit 8f0d185
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 8f0d185

Please sign in to comment.