Closed its-monotype closed 1 year ago
Hey, This is probably something to raise in the https://github.com/nestjs/swagger repository. I don't think this package is causing this issue
Is there something that makes you think this is caused by the eslint rule?
Not really, but it is strange behaviour that I do not understand because it's suggested to set enumName explicitly but If I do it the description for the enum can't be displayed
Yea ok. I'm not going to be able to change the underlying behaviour of the nest swagger library so if you need to use descriptions you can turn off this rule in your eslint configuration so you can skip setting an enumName.
rules: {
"@darraghor/nestjs-typed/api-enum-property-best-practices":
"off",
}
If I remove
enumName
, then I can see the description: