Skip to content

Type helpers + @typescript-eslint/no-unused-vars #976

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

Closed
imagoiq opened this issue Nov 9, 2022 · 1 comment · Fixed by #992
Closed

Type helpers + @typescript-eslint/no-unused-vars #976

imagoiq opened this issue Nov 9, 2022 · 1 comment · Fixed by #992
Labels
good first issue Straightforward problem, solvable for first-time contributors without deep knowledge of the project PRs welcome PRs are welcome to solve this issue!

Comments

@imagoiq
Copy link
Contributor

imagoiq commented Nov 9, 2022

Description

With the latest version (v6), the generated schema contains some type helpers even if there are not used which is catch as a unused variables.

12:5  error  'OneOf' is defined but never used. Allowed unused vars must match /_/u  @typescript-eslint/no-unused-vars
Name Version
openapi-typescript 6.0.1
Node.js 16.15.0
OS + version Windows 10
@drwpow drwpow added PRs welcome PRs are welcome to solve this issue! good first issue Straightforward problem, solvable for first-time contributors without deep knowledge of the project labels Nov 9, 2022
@drwpow
Copy link
Contributor

drwpow commented Nov 9, 2022

I’d be open to a PR if someone would like to tackle this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Straightforward problem, solvable for first-time contributors without deep knowledge of the project PRs welcome PRs are welcome to solve this issue!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants