Skip to content

Commit 503dd72

Browse files
committed
fixes self.__pydantic_serializer__.to_json
1 parent 6648077 commit 503dd72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/web/server/src/simcore_service_webserver/application_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def setup_settings(app: web.Application) -> ApplicationSettings:
572572
app[APP_SETTINGS_KEY] = settings
573573
_logger.debug(
574574
"Captured app settings:\n%s",
575-
app[APP_SETTINGS_KEY].model_dump_json(indent=1),
575+
app[APP_SETTINGS_KEY].model_dump_json(indent=1, warnings="none"),
576576
)
577577
return settings
578578

services/web/server/tests/unit/isolated/test_application_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def app_settings(
2626

2727
# init and validation happens here
2828
settings = setup_settings(app)
29-
print("settings:\n", settings.model_dump_json(indent=1))
29+
print("settings:\n", settings.model_dump_json(indent=1, warnings="none"))
3030

3131
assert APP_SETTINGS_KEY in app
3232
assert app[APP_SETTINGS_KEY] == settings

0 commit comments

Comments
 (0)