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 setting5 months ago
by sydney-runkle add support for serialize_by_alias5 months ago
by sydney-runkle serialize_by_alias tests5 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 combinations5 months ago
by sydney-runkle use Option<bool> for serialize_by_alias config to be consistent with validation alias/name settings5 months ago
by sydney-runkle Merge branch 'main' into new-alias-api5 months ago
by sydney-runkle Merge branch 'new-alias-api' of https://github.com/pydantic/pydantic-core into new-alias-api5 months ago
by sydney-runkle a and A -> my_field and my_alias5 months ago
by sydney-runkle Using .or(x).unwrap_or(y) syntax
Co-authored-by: David Hewitt <david.hewitt@pydantic.dev>5 months ago
by sydney-runkle Merge branch 'new-alias-api' of https://github.com/pydantic/pydantic-core into new-alias-api5 months ago
by sydney-runkle formatting5 months ago
by sydney-runkle Update python/pydantic_core/core_schema.py
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>5 months ago
by sydney-runkle revert test skip5 months ago
by sydney-runkle