Skip to content

Commit

Permalink
Fix error on Schema Validation (#127)
Browse files Browse the repository at this point in the history
* Set additionalProperties to True in schemas.py

Signed-off-by: Marius Bertram <[email protected]>
  • Loading branch information
mariusbertram authored Mar 18, 2024
1 parent 6c9fd25 commit 592cf4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip. Only major versions will be released as tags on Github.

## [0.0.x](https://github.com/oras-project/oras-py/tree/main) (0.0.x)
- enable additionalProperties in schema validation (0.1.28)
- Introduce the option to not refresh headers when fetching manifests when pulling artifacts (0.1.27)
- To make it available for more OCI registries, the value of config used when `manifest_config` is not specified in `client.push()` has been changed from a pure empty string to `{}` (0.1.26)
- refactor tests using fixtures and rework pre-commit configuration (0.1.25)
Expand Down
4 changes: 2 additions & 2 deletions oras/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"size",
"digest",
],
"additionalProperties": False,
"additionalProperties": True,
}

layer.update(layerProperties)
Expand Down Expand Up @@ -54,5 +54,5 @@
"layers",
],
"properties": manifestProperties,
"additionalProperties": False,
"additionalProperties": True,
}
2 changes: 1 addition & 1 deletion oras/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__copyright__ = "Copyright The ORAS Authors."
__license__ = "Apache-2.0"

__version__ = "0.1.27"
__version__ = "0.1.28"
AUTHOR = "Vanessa Sochat"
EMAIL = "[email protected]"
NAME = "oras"
Expand Down

0 comments on commit 592cf4c

Please sign in to comment.