Micael Levi L. Cavalcante

Results 257 comments of Micael Levi L. Cavalcante

but if we enable the [builtin auto-validation](https://docs.nestjs.com/techniques/validation#auto-validation), since we're using `@IsEnum(Size)`, requesting with `{ "size": 1 }` will give us the following validation error: ```json { "statusCode": 400, "message": [...

Hey @WumaCoder I didn't manage to reproduce this in my Ubuntu. ``` git clone --depth=1 https://github.com/WumaCoder/hello-nest cd hello-nest npm i npm run start ``` ![image](https://user-images.githubusercontent.com/13461315/163028483-3981b530-861d-465d-a1c8-0ce074e04b29.png)

@rubiin can you share a minimum reproduction of that? # [why reproductions are required](https://antfu.me/posts/why-reproductions-are-required)

> If it exists, we add a space to the response code but OpenAPI v3 doesn't allow that :( ![error](https://user-images.githubusercontent.com/13461315/130330459-3da86416-c5b7-40c2-9c55-4a535c992781.png)

Another issue that comes with using multiple `@ApiX()` decorators in this way is that we won't be able to implement the following pattern: ```ts @Controller() @ApiOkResponse({ description: 'fallback ok' })...

@VulchiSarath have you registered `UpdateDeviceTokenResponse`? either configuring the nestjs swagger plugin or using `@ApiExtraModels(UpdateDeviceTokenResponse)` https://docs.nestjs.com/openapi/types-and-parameters#extra-models

> nestjs-config version 0.6.3 but `nestjs-config` never had this version. Maybe you're talking about `@nestjs/config`? ``` $ npm info nestjs-config versions [ '1.0.0', '1.0.1', '1.1.0', '1.2.0', '1.2.1', '1.2.2', '1.2.3', '1.2.4',...

:smile: do you agree with that interface to solve this issue? ```ts @Command({ name: 'foo', options: { showSuggestionAfterError: true, showHelpAfterError: '', } }) ``` it's fine to me

I guess you'll need to commit the changes on `package-lock.json` as well.