Closed as not planned
Description
Is your feature request related to a problem? Please describe.
Sometimes self-signed certificates are used during local development (for example when hosting over https://localhost
). Currently openapi-python-client
(rightly) fails to connect to self-signed HTTPS endpoints:
openapi-python-client generate --url https://localhost/openapi --fail-on-warning --meta setup
Error(s) encountered while generating, client was not created
Could not get OpenAPI document from provided URL
Describe the solution you'd like
Add a new --no-verify-ssl
command line option that would allow developers to opt in to disabling SSL verification. This should of course not be the default.
Describe alternatives you've considered
openapi-generator
supports this through the use of (hard to use/understand) Java environment variables:
export JAVA_TOOL_OPTIONS="-Dio.swagger.parser.util.RemoteUrl.trustAll=true -Dio.swagger.v3.parser.util.RemoteUrl.trustAll=true"
Ideally, a simple command line option would be much more discoverable and easy to use.