-
Notifications
You must be signed in to change notification settings - Fork 71
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: use openapi-generator to generate client #58
Conversation
@@ -1,2 +0,0 @@ | |||
Requested Commit: f9b2839a3076f26db1b8fc61655a26662f2552ee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to delete kubernetes_asyncio/.swagger-codegen
and rename kubernetes_asyncio/.swagger-codegen-ignore
to kubernetes_asyncio/.openapi-generator-ignore
.
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
=========================================
Coverage ? 94.39%
=========================================
Files ? 20
Lines ? 1355
Branches ? 0
=========================================
Hits ? 1279
Misses ? 76
Partials ? 0 Continue to review full report at Codecov.
|
@@ -61,6 +61,7 @@ def __aiter__(self): | |||
with patch('kubernetes_asyncio.client.api_client.rest', mock): | |||
|
|||
api_client = WsApiClient() | |||
api_client.configuration.host = 'https://localhost' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because the openapi-generator uses http://localhost
as a default hostname and the swagger-codegen used https://localhost
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were generated by openapi-generator instead of swagger-codegen.
Ref: kubernetes-client/gen#93