diff --git a/server/app/validation/__init__.py b/server/app/validation/__init__.py index 50000589..58a40039 100644 --- a/server/app/validation/__init__.py +++ b/server/app/validation/__init__.py @@ -1,9 +1,9 @@ -from app.validation.mqtt import ( +from .mqtt import ( AcknowledgementsMessage, LogsMessage, MeasurementsMessage, ) -from app.validation.routes import ( +from .routes import ( CreateConfigurationRequest, CreateSensorRequest, CreateSessionRequest, diff --git a/server/app/validation/types.py b/server/app/validation/types.py index 7c4c2348..2cdf2990 100644 --- a/server/app/validation/types.py +++ b/server/app/validation/types.py @@ -19,6 +19,7 @@ class _Configuration(pydantic.BaseModel): # number of JSON fields or nesting depth could be interesting as well # Or, check the actual size of the JSON / length of the JSON string class Config: + extra = pydantic.Extra.allow frozen = True