Skip to content

v0.8.2

Choose a tag to compare

@github-actions github-actions released this 19 Oct 11:57
· 10 commits to main since this release

Patch Changes

  • @Param() params: SomeDto now gives one path parameter per DTO property, as @nestjs/swagger does, instead of a single parameter named after the argument. A path parameter whose name is not in the route is left out with a warning.

  • class-validator constraints given { each: true } now apply to the array's items instead of the array. String keywords from class-validator (minLength, maxLength, pattern and string formats) are no longer written on schemas whose type isn't a string, so @IsNotEmpty() on a number adds nothing.