Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Pydantic serialization warnings #6992

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading