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

feat: mark & hide deprecated operations #138

Merged
merged 1 commit into from
Nov 3, 2022
Merged

feat: mark & hide deprecated operations #138

merged 1 commit into from
Nov 3, 2022

Conversation

danielgtaylor
Copy link
Owner

This feature marks operations that are deprecated in OpenAPI as deprecated in the CLI as well, effectively hiding them from the top level --help listing and putting a warning when using them directly by utilizing a built-in cobra feature.

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Merging #138 (3cde380) into main (0d2eae2) will decrease coverage by 0.00%.
The diff coverage is 84.61%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
- Coverage   64.65%   64.64%   -0.01%     
==========================================
  Files          22       22              
  Lines        2405     2410       +5     
==========================================
+ Hits         1555     1558       +3     
- Misses        685      686       +1     
- Partials      165      166       +1     
Impacted Files Coverage Δ
openapi/openapi.go 52.48% <50.00%> (-0.04%) ⬇️
cli/operation.go 77.77% <100.00%> (+0.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d2eae2...3cde380. Read the comment docs.

@danielgtaylor danielgtaylor merged commit e054065 into main Nov 3, 2022
@danielgtaylor danielgtaylor deleted the deprecated branch November 3, 2022 02:20
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

Successfully merging this pull request may close these issues.

None yet

1 participant