CLI plugin does not appear to be working at all with swc?
sebastiangug opened this issue · comments
Sebastian Gug commented
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
Upon defining a response or an input to an endpoint, the object will show up in the swagger documentation but none of its properties will be picked up by the CLI plugin, despite configured according to the documentation.
Minimum reproduction code
https://github.com/sebastiangug/nest-swc-swagger
Steps to reproduce
- pnpm i
- pnpm watch
- go to localhost:3000/docs
- expand 'RegisterInput'
- observe no keys present on the object
- go to register.input.ts or register.response.ts
- observe keys present on the object
Expected behavior
- CLI plugin picks up DTOs and annotates them accordingly
Package version
7.3.1
NestJS version
10.3.4
Node.js version
18.19.1
In which operating systems have you tested?
- macOS
- Windows
- Linux
Other
No response
Sebastian Gug commented
closed, docs mention I have to import the metadata which I seem to have overlooked.