fix(api): value imports for DTO classes in controllers #630

Merged
jason.woltje merged 1 commits from fix/controller-type-imports into main 2026-03-01 20:55:07 +00:00
Owner

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.

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.
jason.woltje added 1 commit 2026-03-01 20:55:03 +00:00
fix(api): change import type to value imports for DTOs in controllers
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
853f0da10d
jason.woltje merged commit 2b6bed2480 into main 2026-03-01 20:55:07 +00:00
Sign in to join this conversation.