Skip to content

Commit d620252

Browse files
fix typecheck
1 parent 08f32ab commit d620252

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/director-v2/src/simcore_service_director_v2/models/dynamic_services_scheduler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from pydantic import (
3636
AnyHttpUrl,
3737
BaseModel,
38+
BeforeValidator,
3839
ConfigDict,
3940
Field,
4041
StringConstraints,
@@ -476,7 +477,8 @@ def get_proxy_endpoint(self) -> AnyHttpUrl:
476477
] = None
477478

478479
product_api_base_url: Annotated[
479-
AnyHttpUrl | None,
480+
str | None,
481+
BeforeValidator(lambda v: f"{AnyHttpUrl(v)}"),
480482
Field(
481483
description="Base URL for the current product's API.",
482484
),

0 commit comments

Comments
 (0)