darraghoriordan / eslint-plugin-nestjs-typed

Some eslint rules for working with NestJs projects
http://www.darraghoriordan.com
171 stars 34 forks source link

validated-non-primitive-property-needs-type-decorator errors on enum property #16

Closed iddan-flycode closed 2 years ago

iddan-flycode commented 2 years ago
enum Foo {
   BAR
}

// invalid
class Example
  @ApiProperty({ enum: Foo, enumName: 'Foo' })
  @Allow()
  format!: Foo;
}
darraghoriordan commented 2 years ago

fixed in 3.5.6

thanks for reporting