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

Add http_timeout configuration setting to configure timeout when gett… #718

Merged
merged 2 commits into from Jan 16, 2023

Conversation

Kircheneer
Copy link
Contributor

@Kircheneer Kircheneer commented Jan 6, 2023

…ing document via HTTP.

I was trying to generate a client for Nautobot but this failed due to a timeout. I have added a corresponding setting to alleviate this. The default 5s timeout for httpx.get was not enough to allow the endpoint to return in time.

@dbanty
Copy link
Collaborator

dbanty commented Jan 6, 2023

Thanks for the contribution! Can you add a note to the readme about this new config value?

@Kircheneer
Copy link
Contributor Author

  • Added note in README.md
  • Fixed tests that failed as a result of adding the timeout parameter

@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Merging #718 (4af2f38) into main (aa324fc) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #718   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           49        49           
  Lines         1970      1971    +1     
=========================================
+ Hits          1970      1971    +1     
Impacted Files Coverage Δ
openapi_python_client/__init__.py 100.00% <100.00%> (ø)
openapi_python_client/config.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dbanty dbanty merged commit 425cc4c into openapi-generators:main Jan 16, 2023
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

2 participants