#I had a few mistakes integrating swagger with pure js development

16 messages · Page 1 of 1 (latest)

chrome oracle
#

27/5000
If my controller uses the @Bind decorator, the app won't start.Unless I remove the @Bind decorator.This is so sad. What am I supposed to do

tawny elm
#

can you show your nest-cli.json?

chrome oracle
thin cargo
#

The automatic swagger generation that Nest tries to do with the swagger module only works with Typescript, because it needs type metadata that _type_script provides. You could explicitly set the @ApiBody()/@ApiQuery()/etc decorators with schemas if you want to use them still

chrome oracle
minor anchor
#

You have to give type to the ApiProperty({ type: ... }) as well.

thin cargo
chrome oracle
chrome oracle
thin cargo
#

I will always recommend Typescript over raw, or even Babel filled, JS

chrome oracle
chrome oracle
thin cargo
chrome oracle