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

detect and remove unused #89

Open
delanym opened this issue Oct 13, 2020 · 2 comments
Open

detect and remove unused #89

delanym opened this issue Oct 13, 2020 · 2 comments

Comments

@delanym
Copy link

delanym commented Oct 13, 2020

Especially when I use the deference feature, but even just generally, it would be handy if this could detect and potentially remove unused elements. So if I remove a path, the operation would remove its unused component schemas and responses.

@Gi60s
Copy link
Owner

Gi60s commented Oct 13, 2020

I think this is doable. I'll see what I can come up with.

@LasneF
Copy link

LasneF commented Dec 9, 2020

i come up with same requirement ,
spotting unused definition , and raising a warning
could apply on definitions, and response for OAS
this would enhance the swagger quality . but may be a bit challenging to implements . one way to do is to do deference from endpoint and marking as processed , then redo a pass and raise warning for all unmarked field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants