Skip to content

Commit

Permalink
Fix Pydantic serialization warnings (#6992)
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo authored Jan 6, 2025
1 parent 6f0c82c commit 300e242
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from fastapi import APIRouter, Depends, Header, HTTPException, status
from models_library.api_schemas_catalog.services import ServiceGet, ServiceUpdate
from models_library.services import ServiceKey, ServiceType, ServiceVersion
from models_library.services_authoring import Author
from models_library.services_metadata_published import ServiceMetaDataPublished
from pydantic import ValidationError
from pydantic.types import PositiveInt
Expand Down Expand Up @@ -127,7 +128,11 @@ async def list_services(
name="nodetails",
description="nodetails",
type=ServiceType.COMPUTATIONAL,
authors=[{"name": "nodetails", "email": "[email protected]"}],
authors=[
Author.model_construct(
name="nodetails", email="[email protected]"
)
],
contact="[email protected]",
inputs={},
outputs={},
Expand Down

0 comments on commit 300e242

Please sign in to comment.