Closed nidomiro closed 1 year ago
thanks for reporting
fixed in 3.22.5
the rule will ignore anything that isn't an object expression now
Thanks for the fix👍
@darraghoriordan
I can confirm that it works with @ApiProperty(swaggerImportDefinitionTypeOptions)
, but @ApiProperty({ ...swaggerImportDefinitionTypeOptions})
still fails with the same error
ah right, i had fixed @ApiProperty( ...swaggerImportDefinitionTypeOptions)
but missed the object expression wrapper.
this (@ApiProperty({ ...swaggerImportDefinitionTypeOptions})
is fixed in 3.22.6 👍
I currently get the following error when linting:
It seems to be a problem to use any constant inside of
@ApiProperty
, as both{...swaggerImportDefinitionTypeOptions}
andswaggerImportDefinitionTypeOptions
will result in the same error.here is the content of
add-job.dto.ts
:swaggerImportDefinitionTypeOptions
is defined as follows:I'm using: