refactor(chalice): prevent UI from sending extra attributes
This commit is contained in:
parent
15b1e6c767
commit
ce4f03f049
1 changed files with 2 additions and 1 deletions
|
|
@ -21,7 +21,8 @@ def schema_extra(schema: dict, _):
|
||||||
class BaseModel(_BaseModel):
|
class BaseModel(_BaseModel):
|
||||||
model_config = ConfigDict(alias_generator=attribute_to_camel_case,
|
model_config = ConfigDict(alias_generator=attribute_to_camel_case,
|
||||||
use_enum_values=True,
|
use_enum_values=True,
|
||||||
json_schema_extra=schema_extra)
|
json_schema_extra=schema_extra,
|
||||||
|
extra='forbid')
|
||||||
|
|
||||||
|
|
||||||
class Enum(_Enum):
|
class Enum(_Enum):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue