We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab9beb5 + 4a8e94e commit 9064807Copy full SHA for 9064807
openapi_spec_validator/schemas.py
@@ -2,7 +2,7 @@
2
import os
3
4
from pkg_resources import resource_filename
5
-from six.moves.urllib import parse
+from six.moves.urllib import parse, request
6
from yaml import safe_load
7
8
@@ -11,7 +11,7 @@ def get_openapi_schema(version):
11
path_resource = resource_filename('openapi_spec_validator', path)
12
path_full = os.path.join(os.path.dirname(__file__), path_resource)
13
schema = read_yaml_file(path_full)
14
- schema_url = parse.urljoin('file:', path_full)
+ schema_url = parse.urljoin('file:', request.pathname2url(path_full))
15
return schema, schema_url
16
17
0 commit comments