Skip to content

fix: @ApiSchema inheritance#259

Merged
Brian-McBride merged 1 commit into
anatine:mainfrom
mtodd-ukef:fix/schema-name
May 8, 2026
Merged

fix: @ApiSchema inheritance#259
Brian-McBride merged 1 commit into
anatine:mainfrom
mtodd-ukef:fix/schema-name

Conversation

@mtodd-ukef

Copy link
Copy Markdown
Contributor

There existed a bug in the @nestjs/swagger package where the @ApiSchema decorator would not work as expected when applied to child classes (see issue 3160 for full details).

This issue has been fixed (see PR 3164), however the patchNestjsSwagger function from this repo's zod-nestjs package overrides the fix with the old method of obtaining the schema name.

This PR updates the patch function to obtain the schema name in the same way as the original function that is being patched.

@nx-cloud

nx-cloud Bot commented Jul 24, 2025

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 38f0460

Command Status Duration Result
nx affected:test --base=origin/main --codeCoverage ✅ Succeeded 10s View ↗
nx affected:lint --base=origin/main ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-07-24 15:22:25 UTC

@Brian-McBride Brian-McBride merged commit 38ca8ec into anatine:main May 8, 2026
1 check 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.

2 participants