-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
[dev-2.0] RefResolver cannot resolve yaml #681
Comments
Hey @ioggstream let me know if python-jsonschema/jsonschema#682 fixes your issue! |
Thanks @dtkav. This generally work! You did a wonderful job! I create a simple nosetests that could be helpful in this validating external yamls https://gist.github.com/ioggstream/e50ad5c1405f44e7ec266e1016fa2a29 As of now:
Q: can I get the spec back from the parsing? It could be interesting to test the resulting yaml back. |
cool @ioggstream - If you want to, you could modify that into a unit test and submit it as a PR to run in the test suite.
app = connexion.FlaskApp(__name__)
api = app.add_api('openapi.yaml')
api.raw_spec # raw spec
api.specification # parsed spec |
Hi @dtkav , How can i use this now to validate my yaml files.? json.loads(urlopen(uri).read().decode("utf-8")) when it tries to work with yaml files. Any config option available to make it to work with yaml. it worked fine for me. Not sure whether this has been integrated into the latest available release.. Thanks |
because it can't parse yaml schema files like https://opensource.zalando.com/problem/schema.yaml
I workaround'd it in the
jsonschema
moduleBut on https://github.com/Julian/jsonschema/issues/420 it seems yaml is currently out of scope.
Can we fix it in
connexion
subclassing RefResolver?Originally posted by @ioggstream in #678 (comment)
The text was updated successfully, but these errors were encountered: