From cbb0278954c7ffa45fac0d2d670eaee6945db633 Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Fri, 6 Dec 2024 11:55:45 +0100 Subject: [PATCH] add example --- .../src/models_library/rpc_auth_api_keys.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/models-library/src/models_library/rpc_auth_api_keys.py b/packages/models-library/src/models_library/rpc_auth_api_keys.py index cc47291c386..be36327abe7 100644 --- a/packages/models-library/src/models_library/rpc_auth_api_keys.py +++ b/packages/models-library/src/models_library/rpc_auth_api_keys.py @@ -22,4 +22,14 @@ class ApiKeyGet(BaseModel): model_config = ConfigDict( from_attributes=True, + json_schema_extra={ + "examples": [ + { + "id": "42", + "display_name": "test-api-forever", + "api_key": "key", + "api_secret": "secret", + }, + ] + }, )