Skip to content

Commit 300e242

Browse files
Fix Pydantic serialization warnings (#6992)
1 parent 6f0c82c commit 300e242

File tree

1 file changed

+6
-1
lines changed
  • services/catalog/src/simcore_service_catalog/api/rest

1 file changed

+6
-1
lines changed

services/catalog/src/simcore_service_catalog/api/rest/_services.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from fastapi import APIRouter, Depends, Header, HTTPException, status
1010
from models_library.api_schemas_catalog.services import ServiceGet, ServiceUpdate
1111
from models_library.services import ServiceKey, ServiceType, ServiceVersion
12+
from models_library.services_authoring import Author
1213
from models_library.services_metadata_published import ServiceMetaDataPublished
1314
from pydantic import ValidationError
1415
from pydantic.types import PositiveInt
@@ -127,7 +128,11 @@ async def list_services(
127128
name="nodetails",
128129
description="nodetails",
129130
type=ServiceType.COMPUTATIONAL,
130-
authors=[{"name": "nodetails", "email": "[email protected]"}],
131+
authors=[
132+
Author.model_construct(
133+
name="nodetails", email="[email protected]"
134+
)
135+
],
131136
contact="[email protected]",
132137
inputs={},
133138
outputs={},

0 commit comments

Comments
 (0)