Skip to content

Comments

fix: @ApiSchema inheritance#259

Open
mtodd-ukef wants to merge 1 commit intoanatine:mainfrom
mtodd-ukef:fix/schema-name
Open

fix: @ApiSchema inheritance#259
mtodd-ukef wants to merge 1 commit intoanatine:mainfrom
mtodd-ukef:fix/schema-name

Conversation

@mtodd-ukef
Copy link

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
Copy link

nx-cloud bot commented Jul 24, 2025

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

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.

1 participant