Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Dec 6, 2024
1 parent 219cdc3 commit fae53e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions invenio_jsonschemas/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def get_schema(self, path, with_refs=False, resolved=False):
raise JSONSchemaNotFound(path)
with open(os.path.join(self.schemas[path], path)) as file_:
schema = json.load(file_)

if with_refs:
schema = JsonRef.replace_refs(
schema,
Expand All @@ -129,6 +130,8 @@ def get_schema(self, path, with_refs=False, resolved=False):
)
if resolved:
schema = self.resolver_cls(schema)

print(f"InvenioJSONSchemasState.get_schema schema: {schema}")
return schema

def list_schemas(self):
Expand Down

0 comments on commit fae53e1

Please sign in to comment.