Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump major #105

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
Changes
=======

Version 2.0.0 (release 2024-12-05)

- setup: bump major dependencies

Version 1.1.5 (release 2024-11-30)

- fix: SphinxWarning
Expand Down
2 changes: 1 addition & 1 deletion invenio_jsonschemas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
from .ext import InvenioJSONSchemas, InvenioJSONSchemasAPI, InvenioJSONSchemasUI
from .proxies import current_jsonschemas

__version__ = "1.1.5"
__version__ = "2.0.0"

__all__ = (
"__version__",
Expand Down
5 changes: 4 additions & 1 deletion invenio_jsonschemas/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
# Copyright (C) 2024 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -53,7 +54,9 @@ def get_schema(schema_path):
schema = state.get_schema(
schema_path, with_refs=with_refs, resolved=resolved
)
return jsonify(schema)
return jsonify(
schema.__subject__ if isinstance(schema, JsonRef) else schema
)
else:
return send_from_directory(schema_dir, schema_path)

Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ packages = find:
python_requires = >=3.7
zip_safe = False
install_requires =
invenio-base>=1.2.2,<2.0.0
invenio-base>=2.0.0,<3.0.0
jsonref>=0.1
importlib_metadata>=4.0
importlib_resources>=4.0

[options.extras_require]
tests =
pytest-black>=0.3.0,<0.3.10
pytest-black-ng>=0.4.0
jsonresolver[jsonschema]>=0.2.1
mock>=1.3.0
pytest-invenio>=1.4.0,<3.0.0
pytest-invenio>=3.0.0,<4.0.0
sphinx>=4.5
# Kept for backwards compatibility
docs =
Expand Down