Skip to content

Commit 13502ac

Browse files
fix download url type
1 parent 9c1a498 commit 13502ac

File tree

1 file changed

+4
-5
lines changed
  • services/api-server/src/simcore_service_api_server/models/schemas

1 file changed

+4
-5
lines changed

services/api-server/src/simcore_service_api_server/models/schemas/studies.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
from typing import Annotated, TypeAlias
1+
from typing import TypeAlias
22

3+
from common_library.pydantic_networks_extension import AnyUrlLegacy
34
from models_library import projects, projects_nodes_io
45
from models_library.utils import pydantic_tools_extension
5-
from pydantic import AnyUrl, BaseModel, BeforeValidator, Field, TypeAdapter
6+
from pydantic import BaseModel, Field
67

78
from .. import api_resources
89
from . import solvers
910

1011
StudyID: TypeAlias = projects.ProjectID
1112
NodeName: TypeAlias = str
12-
DownloadLink: TypeAlias = Annotated[
13-
str, BeforeValidator(lambda x: str(TypeAdapter(AnyUrl).validate_python(x)))
14-
]
13+
DownloadLink: TypeAlias = AnyUrlLegacy
1514

1615

1716
class Study(BaseModel):

0 commit comments

Comments
 (0)