Typed dict JSON schema does not pay attention to extra_behavior
argument
#7809
Labels
bug V2
Bug related to Pydantic V2
extra_behavior
argument
#7809
Initial Checks
Description
When creating a JSON schema from a typed dict core schema, the core schema uses the attribute
extra_behavior
to determine whether additional unspecified fields are allowed. However the code for generating JSON schemas, at https://github.com/pydantic/pydantic/blob/v2.4.2/pydantic/json_schema.py#L1194, instead checks for the keyextra
, so the setting is ignored.Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: