Skip to content

Commit 26b89ff

Browse files
committed
minor models
1 parent 4c51690 commit 26b89ff

File tree

1 file changed

+2
-4
lines changed
  • services/web/server/src/simcore_service_webserver/studies_dispatcher

1 file changed

+2
-4
lines changed

services/web/server/src/simcore_service_webserver/studies_dispatcher/_models.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Annotated
22

33
from models_library.services import ServiceKey, ServiceVersion
4-
from pydantic import BaseModel, Field, HttpUrl, PositiveInt, TypeAdapter
4+
from pydantic import BaseModel, Field, HttpUrl, PositiveInt
55

66

77
class ServiceInfo(BaseModel):
@@ -10,9 +10,7 @@ class ServiceInfo(BaseModel):
1010

1111
label: Annotated[str, Field(description="Display name")]
1212

13-
thumbnail: Annotated[HttpUrl, Field()] = TypeAdapter(HttpUrl).validate_python(
14-
"https://via.placeholder.com/170x120.png"
15-
)
13+
thumbnail: HttpUrl = HttpUrl("https://via.placeholder.com/170x120.png")
1614

1715
is_guest_allowed: bool = True
1816

0 commit comments

Comments
 (0)