Skip to content

Commit

Permalink
Override resolver function from jsonschema
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed May 4, 2023
1 parent 25cd132 commit 7b09579
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rpdk/core/jsonutils/inliner.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ def __init__(self, base_uri, schema):
def _walk_schema(self):
self._walk(self.schema, (BASE,))

def resolve(self, ref):
"""
Resolve the given reference.
"""
url = self._urljoin_cache(self.resolution_scope, ref)
return url, self._remote_cache(url)

def _walk(self, obj, old_path):
if isinstance(obj, str):
return # very common, easier to debug this case
Expand Down

0 comments on commit 7b09579

Please sign in to comment.