Commits
Click on a commit to change the comparison rangestarting on alias API unification
* replace populate_by_name with validate_by_name
* enforce validate_by_alias in conjunction with validate_by_name (via get_lookup_key)
* deprecate populate_by_name spec on model, dc, and td schemas in favor of access through the config setting11 months ago
by sydney-runkle add support for serialize_by_alias11 months ago
by sydney-runkle serialize_by_alias tests11 months ago
by sydney-runkle Implement support for by_alias and by_name for model validation functions
* This approach (2nd attempt) emphasizes building lookup keys at schema build time for performance reasons
* We avoid any LookupKey builds at validation time to avoid perf bottlenecks + redundant builds
* We store potentially up to 3 LookupKey instances via LookupKeyCollection, representing
name, alias, and alias_then_name lookups based on the combination of config and runtime alias settings.
* Adding parametrized tests to check various alias config / runtime setting combinations11 months ago
by sydney-runkle use Option<bool> for serialize_by_alias config to be consistent with validation alias/name settings11 months ago
by sydney-runkle Merge branch 'main' into new-alias-api10 months ago
by sydney-runkle Merge branch 'new-alias-api' of https://github.com/pydantic/pydantic-core into new-alias-api10 months ago
by sydney-runkle a and A -> my_field and my_alias10 months ago
by sydney-runkle Using .or(x).unwrap_or(y) syntax
Co-authored-by: David Hewitt <david.hewitt@pydantic.dev>10 months ago
by sydney-runkle Merge branch 'new-alias-api' of https://github.com/pydantic/pydantic-core into new-alias-api10 months ago
by sydney-runkle formatting10 months ago
by sydney-runkle Update python/pydantic_core/core_schema.py
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>10 months ago
by sydney-runkle revert test skip10 months ago
by sydney-runkle