fix(api): value imports for DTO classes in controllers #630
Reference in New Issue
Block a user
Delete Branch "fix/controller-type-imports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All @Body() and @Query() DTO params were using 'import type', which erases the class at runtime. reflect-metadata then records 'Function' instead of the actual class, so NestJS ValidationPipe validates against an empty schema and forbids every field. Fixed in: fleet-settings, workspaces, activity, widgets, dashboard, llm-usage controllers.