From e7bba2597ef55b136e587d31d1da35af16f26584 Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Fri, 6 Dec 2024 14:07:28 +0100 Subject: [PATCH] models --- .../src/models_library/api_schemas_webserver/auth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/models-library/src/models_library/api_schemas_webserver/auth.py b/packages/models-library/src/models_library/api_schemas_webserver/auth.py index 1b5823a7945..8aef470772b 100644 --- a/packages/models-library/src/models_library/api_schemas_webserver/auth.py +++ b/packages/models-library/src/models_library/api_schemas_webserver/auth.py @@ -64,6 +64,7 @@ class ApiKeyCreateRequest(OutputSchema): alias_generator=AliasGenerator( validation_alias=to_camel, ), + from_attributes=True, json_schema_extra={ "examples": [ { @@ -92,6 +93,7 @@ class ApiKeyCreateResponse(ApiKeyCreateRequest): alias_generator=AliasGenerator( serialization_alias=to_camel, ), + from_attributes=True, json_schema_extra={ "examples": [ { @@ -130,6 +132,7 @@ class ApiKeyGet(OutputSchema): alias_generator=AliasGenerator( serialization_alias=to_camel, ), + from_attributes=True, json_schema_extra={ "examples": [ {