diff --git a/pydantic_schemas/schema_base_model.py b/pydantic_schemas/schema_base_model.py index 06c7548..90d8df9 100644 --- a/pydantic_schemas/schema_base_model.py +++ b/pydantic_schemas/schema_base_model.py @@ -3,7 +3,7 @@ class SchemaBaseModel(BaseModel): model_config = ConfigDict( - validate_assignment=True, protected_namespaces=(), use_enum_values=True + validate_assignment=True, protected_namespaces=(), use_enum_values=True, extra="forbid" ) # if a subclass has a model_config then this will be overridden def __setitem__(self, key, value): diff --git a/pyproject.toml b/pyproject.toml index 64285f9..0ba3153 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "metadataschemas" -version = "0.1.13" +version = "0.1.15" description = "" authors = ["Mehmood Asghar ", "Gordon Blackadder "] readme = "README.md"