Skip to content

fix: Fix broken deep import#363

Merged
BenLorantfy merged 2 commits into
mainfrom
issue360
Apr 5, 2026
Merged

fix: Fix broken deep import#363
BenLorantfy merged 2 commits into
mainfrom
issue360

Conversation

@BenLorantfy

Copy link
Copy Markdown
Owner

Closes #360

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a TypeScript build failure caused by a deep import into @nestjs/swagger internals by replacing it with a type derived from the public @nestjs/swagger API, aligning with the reported error in issue #360.

Changes:

  • Removed the deep type import from @nestjs/swagger/dist/interfaces/open-api-spec.interface.
  • Added a public OpenAPIObject type import from @nestjs/swagger.
  • Introduced a local SchemaObject type alias derived from OpenAPIObject['components']['schemas'][string] (excluding $ref entries) and used it for ExtendedSchemaObject.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BenLorantfy BenLorantfy merged commit 3624adc into main Apr 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot find module '@nestjs/swagger/dist/interfaces/open-api-spec.interface' or its corresponding type declarations.

2 participants