-
Notifications
You must be signed in to change notification settings - Fork 2
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 new API url parameter to Config #17
Conversation
Good idea @Romamo - I'll fix the CI issue and take it over from here 🙏 |
I didn't tested but you can choose the server also: service_api = OpenAPIClient.from_spec(
openapi_spec="https://petstore3.swagger.io/api/v3/openapi.json",
url=1
) |
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.
Left one naming suggestion. Cool if after your commit I push some tests on your branch and also remove the examples (at least for now)?
* Added url to Config * Added petstore3 example * Fixed too-many-branches (PLR0912) * Fixed I001 [*] Import block is un-sorted or un-formatted * Renamed url to base_url * Removed examples * Update async as well --------- Co-authored-by: Romamo <[email protected]>
Superseded by #19 |
Added API url parameter to Config because some specifications do not specify the full URL.
Example: