File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
packages/models-library/src/models_library/api_schemas_webserver
services/web/server/src/simcore_service_webserver/api_keys/_controller Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,13 @@ class UnregisterCheck(InputSchema):
5555
5656class ApiKeyCreateRequest (InputSchema ):
5757 display_name : Annotated [str , Field (..., min_length = 3 )]
58- expiration : timedelta | None = Field (
59- None ,
60- description = "Time delta from creation time to expiration. If None, then it does not expire." ,
61- )
58+ expiration : Annotated [
59+ timedelta | None ,
60+ Field (
61+ None ,
62+ description = "Time delta from creation time to expiration. If None, then it does not expire." ,
63+ ),
64+ ]
6265
6366 model_config = ConfigDict (
6467 alias_generator = AliasGenerator (
@@ -86,11 +89,14 @@ class ApiKeyCreateRequest(InputSchema):
8689class ApiKeyCreateResponse (OutputSchema ):
8790 id : IDStr
8891 display_name : Annotated [str , Field (..., min_length = 3 )]
89- expiration : timedelta | None = Field (
90- None ,
91- description = "Time delta from creation time to expiration. If None, then it does not expire." ,
92- )
93- api_base_url : HttpUrl
92+ expiration : Annotated [
93+ timedelta | None ,
94+ Field (
95+ None ,
96+ description = "Time delta from creation time to expiration. If None, then it does not expire." ,
97+ ),
98+ ]
99+ api_base_url : HttpUrl | None = None
94100 api_key : str
95101 api_secret : str
96102
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ async def create_api_key(request: web.Request):
5555 api_key = ApiKeyCreateResponse .model_validate (
5656 {
5757 ** asdict (created_api_key ),
58- "api_base_url" : get_api_base_url (request ) or "" ,
58+ "api_base_url" : get_api_base_url (request ),
5959 }
6060 )
6161
You can’t perform that action at this time.
0 commit comments