From 8e1cf78671ab08a24741ba582a8b3f83d8903b21 Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Mon, 23 Dec 2024 14:05:10 +0100 Subject: [PATCH] fix catalog --- .../src/simcore_service_catalog/api/rest/_services.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/catalog/src/simcore_service_catalog/api/rest/_services.py b/services/catalog/src/simcore_service_catalog/api/rest/_services.py index e2abc23d179..78362d63733 100644 --- a/services/catalog/src/simcore_service_catalog/api/rest/_services.py +++ b/services/catalog/src/simcore_service_catalog/api/rest/_services.py @@ -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": "nodetails@nodetails.com"}], + authors=[ + Author.model_construct( + name="nodetails", email="nodetails@nodetails.com" + ) + ], contact="nodetails@nodetails.com", inputs={}, outputs={},