-
Notifications
You must be signed in to change notification settings - Fork 87
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
Extraction of Schema from K8S 1.12.2 Spec fails with UnboundLocalError #16
Comments
Looking at the code I think what's happening is you're not being able to load the content from: https://raw.githubusercontent.com/kubernetes/kubernetes/v1.12.2/api/openapi-spec/swagger.json If that's a YAML document and it doesn't contain either the This appears to be environmental, as I was just able to run this OK here. |
Hm, I tried it myself again just now and it does indeed work just fine. |
If we can't find either 'swagger' or 'openapi' keys, previously we'd get an UnboundLocalError because of an undefined variable. Even if we fixed that, it is probably bad to continue with command flow when the behavior is not well defined. Instead throw an error to exit execution immediately. Fixes instrumenta#16.
If we can't find either 'swagger' or 'openapi' keys, previously we'd get an UnboundLocalError because of an undefined variable. Even if we fixed that, it is probably bad to continue with command flow when the behavior is not well defined. Instead throw an error to exit execution immediately. Fixes instrumenta#16.
…ons/actions/checkout-4.1.2 Bump actions/checkout from 4.1.1 to 4.1.2
When extracting the JSON schema from the Kubernetes 1.12.2 spec I get an UnboundLocalError exception:
The text was updated successfully, but these errors were encountered: