-
Notifications
You must be signed in to change notification settings - Fork 80
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
Unable to resolve local relative file references #3
Comments
Seems like the bug indeed. I'll take a look on the weekend. Thanks for the reporting! |
Sure thing. Happy to help if additional implementation is necessary. |
@CloudNiner Well, I have both good and bad news for you. :) [GOOD] I've managed to fix the issue, and once I finish writing tests I'll push it. [BAD] Unfortunately, jsonschema tries to load referred documents as JSON, so trying to load YAMLs as JSON will obviously fail. :( |
Awesome. Thanks for taking a look! I expected yaml would be trouble, no worries there. |
UPD: |
I have two yml files that define my Swagger specification:
and
When I attempt to build my sphinx docs, I get the following error:
It appears that
jsonschema.RefResolver
is always instantiated withbase_uri = ''
, which would break local refs. Is it possible to have an option on the openapi directive that would allow local file refs in the Swagger definition somehow?It appears that some workarounds are being explored here: python-jsonschema/jsonschema#313 (comment)
The text was updated successfully, but these errors were encountered: