Closed han911976 closed 3 months ago
Yea so I don't use the cli in my project, this rule is probably redundant if you're having an automated tool adding the thing that it is telling you you should add? so you can just turn it off in your eslint conifg
rules: {
"@darraghor/nestjs-typed/api-method-should-specify-api-response": "off",
}
Hi I am trying to follow code here to reduce my copy-and-paste hassle (and improve tiny readability) https://docs.nestjs.com/openapi/operations#advanced-generic-apiresponse
funcionally my code works, which allow me to group multi response decorators into single decorator
However, warning will occur
I am also having swagger cli enabled, I think the
ApiOkRepsonse
is generated by the cli and do not require manual paste.As a work around I can slient the error / add a
ApiOkResponse()
for each endpoint which makes me feel redundant -v-I think this might be able to fix by implementing or extends the original
ApiResponse
?I am new to nest, hopefully this is not a stupid question.
Thank you.
api-method-should-specify-api-response