Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning 'Unnecessary type declaration' from openapi/warnings #33

Open
Ilchuk-Mihail opened this issue May 31, 2021 · 4 comments
Open

warning 'Unnecessary type declaration' from openapi/warnings #33

Ilchuk-Mihail opened this issue May 31, 2021 · 4 comments
Labels
bug Something isn't working eslint

Comments

@Ilchuk-Mihail
Copy link

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

What does it mean and how to fix it ?

@bourdakos1
Copy link
Member

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

@Ilchuk-Mihail
Copy link
Author

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

@bourdakos1
Copy link
Member

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

@Ilchuk-Mihail
Copy link
Author

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

@bourdakos1 bourdakos1 added bug Something isn't working eslint labels Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working eslint
Projects
None yet
Development

No branches or pull requests

2 participants