Skip to content

Commit

Permalink
Merge pull request #9 from perastov/add-raw-method-to-json-view
Browse files Browse the repository at this point in the history
Add method raw() to JsonObjectView
  • Loading branch information
perastov authored Sep 28, 2023
2 parents 13c8db0 + 2926d3b commit e3e4374
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Release History
===============

1.0.3 (2023-09-27)
------------------

- Add method raw() to JsonObjectView

1.0.2 (2023-09-26)
------------------

Expand Down
2 changes: 1 addition & 1 deletion cybsi/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.2"
__version__ = "1.0.3"
__title__ = "cybsi-cloud-sdk"
__description__ = "Cybsi Cloud development kit"
__license__ = "Apache License 2.0"
Expand Down
4 changes: 4 additions & 0 deletions cybsi/cloud/internal/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def _map_list_optional(self, key, mapper: Callable[[Any], Any]):
return [mapper(val) for val in values]
return None

def raw(self) -> JsonObject:
"""Returns raw object view"""
return self._data


T = TypeVar("T")

Expand Down
2 changes: 1 addition & 1 deletion cybsi/cloud/iocean/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,4 @@ def schema(self) -> JsonObject:
See :ref:`object_schemas` for information about schema structure.
"""
return self._data
return self.raw()
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cybsi-cloud-sdk"
version = "1.0.2"
version = "1.0.3"
description = "Cybsi Cloud development kit"
authors = ["Cybsi Cloud developers"]
license = "Apache License 2.0"
Expand Down Expand Up @@ -40,7 +40,7 @@ extend_skip = ["__init__.py"]
[tool.tbump]

[tool.tbump.version]
current = "1.0.2"
current = "1.0.3"

regex = '''
^
Expand Down

0 comments on commit e3e4374

Please sign in to comment.