diff --git a/invenio_jsonschemas/ext.py b/invenio_jsonschemas/ext.py index 9cc2cab..e59689b 100644 --- a/invenio_jsonschemas/ext.py +++ b/invenio_jsonschemas/ext.py @@ -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, @@ -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):