Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON schema: fix extra parameter handling #7810

Merged
merged 3 commits into from Oct 20, 2023

Commits on Oct 12, 2023

  1. JSON schema: fix extra parameter handling

    The core schema for typed dicts has an "extra_behavior" key for checking
    whether additional unspecified keys are allowed, but the JSON schema
    generator ignores this and only checks the configuration dict.  Have the
    JSON schema generator check both places, and prefer the value set in the
    core schema over the one in the config dictionary if both are present.
    
    Fixes pydantic#7809.
    me-and committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    79b130e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89f326f View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Update pydantic/json_schema.py with faster check for extra_behavior

    Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
    sydney-runkle and davidhewitt committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    f1c12e9 View commit details
    Browse the repository at this point in the history