Skip to content

Commit 9bb1f37

Browse files
anton-bAnton Benkevich
andauthored
Resolve refs in the remote schema pieces (#101)
Co-authored-by: Anton Benkevich <[email protected]>
1 parent 2ec6eb9 commit 9bb1f37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

alsdkdefs/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ def __list_flatten(l):
222222

223223

224224
def __resolve_refs(file_uri, spec):
225-
handlers = {'': get_spec, 'file': get_spec, 'http': get_spec, 'https': get_spec}
225+
def spec_ref_handler(uri):
226+
return __resolve_refs(uri, get_spec(uri))
227+
handlers = {'': spec_ref_handler, 'file': spec_ref_handler, 'http': spec_ref_handler, 'https': spec_ref_handler}
226228
resolver = jsonschema.RefResolver(file_uri, spec, handlers=handlers)
227229

228230
def _do_resolve(node):

0 commit comments

Comments
 (0)