fixed swagger issues and ran prettier#29
Conversation
WalkthroughAh, elementary indeed! The game reveals itself—modifications to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes The modifications are localized to a single file with straightforward, repetitive adjustments to decorator arguments and type annotations. The logic density remains low—primarily parameter mutations and type reassignments. No structural complexity or cross-file dependencies complicate the deduction. Poem
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (1)
src/helpers.ts(2 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (CLAUDE.md)
**/*.{ts,tsx}: Code must be compatible with TypeScript strict mode
Use Prettier for consistent code formatting (npm run format / format:check)
Files:
src/helpers.ts
src/**/*.ts
📄 CodeRabbit inference engine (CLAUDE.md)
Place TypeScript source files under src/ (compiled to lib/ via npm run build)
Files:
src/helpers.ts
src/helpers.ts
📄 CodeRabbit inference engine (CLAUDE.md)
Provide utilities for decorators, imports, and type mapping in src/helpers.ts
Files:
src/helpers.ts
🔇 Additional comments (1)
src/helpers.ts (1)
180-182: Brilliant deduction! The type metamorphosis is precisely what the doctor ordered.Observe the transformation from string literal
"object"to the Object type reference—a most fitting solution for JSON fields, I dare say. The NestJS Swagger decorators expecttype: Objectfor arbitrary object schemas, and your modification ensures the JSON field generates the proper OpenAPI specification.
|
Thanks for your contribution! |
Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
This PR fixes the most recent issue raised regarding swagger JSON fields. The change fixes type issues associated with adding swagger annotations to generated validator files.
Changes pass tests and should not include breaking changes.
References
each: trueto validator #28Summary by CodeRabbit