From 2926d3b73a2e9557e89d2f4e741ff5cfd0116ab5 Mon Sep 17 00:00:00 2001 From: Petr Erastov Date: Wed, 27 Sep 2023 15:18:38 +0300 Subject: [PATCH] Add method raw() to JsonObjectView --- HISTORY.md | 5 +++++ cybsi/__version__.py | 2 +- cybsi/cloud/internal/base.py | 4 ++++ cybsi/cloud/iocean/schemas.py | 2 +- pyproject.toml | 4 ++-- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index c0a6b99..67d0454 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,11 @@ Release History =============== +1.0.3 (2023-09-27) +------------------ + +- Add method raw() to JsonObjectView + 1.0.2 (2023-09-26) ------------------ diff --git a/cybsi/__version__.py b/cybsi/__version__.py index ddc70fc..842f7e1 100644 --- a/cybsi/__version__.py +++ b/cybsi/__version__.py @@ -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" diff --git a/cybsi/cloud/internal/base.py b/cybsi/cloud/internal/base.py index 1c862a8..1207482 100644 --- a/cybsi/cloud/internal/base.py +++ b/cybsi/cloud/internal/base.py @@ -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") diff --git a/cybsi/cloud/iocean/schemas.py b/cybsi/cloud/iocean/schemas.py index a604d4c..777a493 100644 --- a/cybsi/cloud/iocean/schemas.py +++ b/cybsi/cloud/iocean/schemas.py @@ -239,4 +239,4 @@ def schema(self) -> JsonObject: See :ref:`object_schemas` for information about schema structure. """ - return self._data + return self.raw() diff --git a/pyproject.toml b/pyproject.toml index 7913b3a..e3ef657 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -40,7 +40,7 @@ extend_skip = ["__init__.py"] [tool.tbump] [tool.tbump.version] -current = "1.0.2" +current = "1.0.3" regex = ''' ^