From fadfa1fd957be2a86abaeb0fa4834f243a6e006a Mon Sep 17 00:00:00 2001 From: matusdrobuliak66 Date: Wed, 11 Dec 2024 08:16:25 +0100 Subject: [PATCH] fix typecheck --- .../models_library/api_schemas_webserver/wallets.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/models-library/src/models_library/api_schemas_webserver/wallets.py b/packages/models-library/src/models_library/api_schemas_webserver/wallets.py index 9cb0c3c7374..a4f33ab3cad 100644 --- a/packages/models-library/src/models_library/api_schemas_webserver/wallets.py +++ b/packages/models-library/src/models_library/api_schemas_webserver/wallets.py @@ -60,6 +60,19 @@ class WalletGetPermissions(WalletGet): write: bool delete: bool + model_config = ConfigDict( + json_schema_extra={ + "examples": [ + { + **WalletGet.model_config["json_schema_extra"]["examples"][0], # type: ignore + "read": True, + "write": True, + "delete": True, + } + ] + } + ) + class CreateWalletBodyParams(OutputSchema): name: str