-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Pydantic serialization warnings (#6992)
- Loading branch information
1 parent
6f0c82c
commit 300e242
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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={}, | ||
|