bee-travels/openapi-comment-parser

warning 'Unnecessary type declaration' from `openapi/warnings`

Ilchuk-Mihail opened this issue · 4 comments

I have warning message 'Unnecessary type declaration' when I use:
@paramComponent {ExampleParameter} and @bodyComponent

What does it mean and how to fix it ?

I don’t think this warning is coming from openapi-comment-parser. This sounds like a typescript or eslint warning

I guess that's from openapi plugin, in my eslint config I have "plugin:openapi/recommended".
Error attached:
image

Oh yea looks like a bug with the eslint plugin. Does it generate the correct openapi spec?

Yes, spec is correct. (only warning shows up)