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

support disabling ssl validation in openapi2jsonschema.py #167

Merged
merged 3 commits into from
Feb 26, 2023

Conversation

w7089
Copy link
Contributor

@w7089 w7089 commented Jan 22, 2023

Fixes #157

not the best implementation, but the pr has the minimal changes required in order to run this script on MAC without an issue. If the pr is approved, will edit the README as well

@yannh
Copy link
Owner

yannh commented Jan 22, 2023

🎉 Any chance to add an acceptance tests to demonstrate that this works? 🙏

@w7089
Copy link
Contributor Author

w7089 commented Jan 22, 2023

🎉 Any chance to add an acceptance tests to demonstrate that this works? 🙏

Sure, added and tested. Added an additional commit which speeds up docker build of bats image.

@yannh
Copy link
Owner

yannh commented Jan 22, 2023

Mhhh I guess to properly test this we'd need a host with a broken or self-signed certificate... I'm not going to use this, if it works for you I'm ok to merge it :)

@w7089
Copy link
Contributor Author

w7089 commented Jan 23, 2023

Yes, it works for me, thanks) I didn't change the script's behaviour with respect to certificates usage, only allowed to disable CA cert usage when accessing kubernetes yaml CRDs using https. Without this, the script fails on MAC and requires to modify it.

@yannh yannh merged commit aaecabe into yannh:master Feb 26, 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.

openapi2jsonschema.py certificate verify failed: unable to get local issuer certificate
2 participants