Skip to content

Commit

Permalink
fix(get_versioned_release_schema): Copy schema before modifying in-place
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 15, 2024
1 parent 53aaafb commit 86e5767
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

0.6.7 (2024-12-15)
------------------

- :meth:`~ocdsextensionregistry.versioned_release_schema.get_versioned_release_schema`: Copy schema before modifying in-place.

0.6.6 (2024-12-15)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
author = "Open Contracting Partnership"

# The short X.Y version
version = "0.6.6"
version = "0.6.7"
# The full version, including alpha/beta/rc tags
release = version

Expand Down
2 changes: 2 additions & 0 deletions ocdsextensionregistry/versioned_release_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ def _remove_metadata_and_extended_keywords(schema):

def get_versioned_release_schema(schema, tag):
"""Return the versioned release schema."""
schema = deepcopy(schema)

# Update schema metadata.
schema["id"] = (
f"https://standard.open-contracting.org/schema/{tag}/versioned-release-validation-schema.json"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ocdsextensionregistry"
version = "0.6.6"
version = "0.6.7"
authors = [{name = "Open Contracting Partnership", email = "[email protected]"}]
description = "Eases access to information from the extension registry of the Open Contracting Data Standard"
readme = "README.rst"
Expand Down

0 comments on commit 86e5767

Please sign in to comment.