Skip to content

Commit c935034

Browse files
committed
Fix broken config options due to tightened typing
1 parent 886c6a3 commit c935034

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎simvue/config/parameters.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
logger = logging.getLogger(__name__)
2020

21-
BASE_MODEL_CONFIG = pydantic.ConfigDict(extra="forbid", strict=True)
21+
BASE_MODEL_CONFIG = pydantic.ConfigDict(extra="forbid")
2222

2323

2424
class MetadataSpecifications(pydantic.BaseModel):
@@ -56,7 +56,9 @@ def check_for_cert_env(
5656

5757

5858
class ServerSpecifications(pydantic.BaseModel):
59-
model_config: typing.ClassVar[pydantic.ConfigDict] = BASE_MODEL_CONFIG
59+
model_config: typing.ClassVar[pydantic.ConfigDict] = BASE_MODEL_CONFIG | {
60+
"extra": "forbid"
61+
}
6062
url: pydantic.AnyHttpUrl | None
6163
token: pydantic.SecretStr | None
6264
env: dict[str, str] | None = None

0 commit comments

Comments
 (0)