Skip to content

Commit 2331b89

Browse files
continue fixing
1 parent 00c4164 commit 2331b89

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/models-library/src/models_library/app_diagnostics.py

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

3-
from pydantic import AnyUrl, BaseModel, Field
3+
from pydantic import AfterValidator, AnyUrl, BaseModel, Field
44

55

66
class AppStatusCheck(BaseModel):
@@ -15,11 +15,11 @@ class AppStatusCheck(BaseModel):
1515
description="Client sessions info. If single session per app, then is denoted as main",
1616
)
1717

18-
url: AnyUrl | None = Field(
18+
url: Annotated[AnyUrl, AfterValidator(str)] | None = Field(
1919
default=None,
2020
description="Link to current resource",
2121
)
22-
diagnostics_url: AnyUrl | None = Field(
22+
diagnostics_url: Annotated[AnyUrl, AfterValidator(str)] | None = Field(
2323
default=None,
2424
description="Link to diagnostics report sub-resource. This MIGHT take some time to compute",
2525
)

packages/pytest-simcore/src/pytest_simcore/helpers/httpx_calls_capture_parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CapturedParameterSchema(BaseModel):
1111
pattern: str | None = None
1212
format_: Literal["uuid"] | None = Field(None, alias="format")
1313
exclusiveMinimum: bool | None = None
14-
minimum: int | None = None
14+
minimum: int | float | None = None
1515
anyOf: list["CapturedParameterSchema"] | None = None
1616
allOf: list["CapturedParameterSchema"] | None = None
1717
oneOf: list["CapturedParameterSchema"] | None = None
@@ -42,7 +42,7 @@ def check_compatibility(cls, values):
4242
oneOf = values.oneOf
4343
if not any([type_, oneOf, anyOf, allOf]):
4444
type_ = "str" # this default is introduced because we have started using json query params in the webserver
45-
values["type_"] = type_
45+
values.type_ = type_
4646
if type_ != "str" and any([pattern, format_]):
4747
msg = f"For {type_=} both {pattern=} and {format_=} must be None"
4848
raise ValueError(msg)

services/api-server/src/simcore_service_api_server/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _validate_loglevel(cls, value) -> str:
7878

7979
class ApplicationSettings(BasicSettings):
8080
# DOCKER BOOT
81-
SC_BOOT_MODE: BootModeEnum | None
81+
SC_BOOT_MODE: BootModeEnum | None = None
8282

8383
API_SERVER_POSTGRES: PostgresSettings | None = Field(
8484
json_schema_extra={"auto_default_from_env": True}

0 commit comments

Comments
 (0)