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 81df84f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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
6 changes: 3 additions & 3 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ set -o errexit
# Quit on unbound symbols
set -o nounset

python -m check_manifest
python -m sphinx.cmd.build -qnNW docs docs/_build/html
python -m pytest
# python -m check_manifest
# python -m sphinx.cmd.build -qnNW docs docs/_build/html
python -m pytest -s

0 comments on commit 81df84f

Please sign in to comment.