enum_schema属性可能并不存在于所有版本的pydantic_core中。你需要检查当前安装的版本是否支持该属性。可以通过以下代码查看当前安装的版本: python import pydantic_core print(pydantic_core.__version__) 更新pydantic_core到最新版本: 如果enum_schema属性在较新版本中可用,你可以尝试更新pydantic_core到最新版本: ba...
@@ -2861,6 +2863,7 @@ def model_fields_schema( 2861 2863 2862 2864 Args: 2863 2865 fields: The fields to use for the typed dict 2866 + model_name: The name of the model, used for error messages, defaults to "Model" 2864 2867 computed_fields: Computed fields to use when se...
.github benches python src tests wasm-preview .codecov.yml .gitignore .mypy-stubtest-allowlist .pre-commit-config.yaml .rustfmt.toml Cargo.lock Cargo.toml LICENSE Makefile README.md build.rs generate_self_schema.py package.json pyproject.toml uv.lockBreadcrumbs pydantic-core / Cargo.toml Late...
ValidationError::new(line_errors, "Schema".to_object(py), InputType::Python, false); let validation_error = ValidationError::new( line_errors, PyString::new(py, "Schema").into(), InputType::Python, false, ); let schema_error = SchemaError(SchemaErrorEnum::ValidationError(validation_error)...
Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} pydantic / pydantic-core Public Notifications You must be signed in to change notification settings Fork 272 ...
Added Enums/IntEnums types for Gino & Pydantic Added UUID type Added keyschema_globalin create_models method (by default schema_global = True). If you set schema_global=False schema if it exists in ddl will be defined for each table (model) in table args. This way you can have differ...
; Ok(Self { // we don't use is_strict here since we don't want validation to be strict in this case if // `config.strict` is set, only if this specific field is strict strict: schema.get_as(intern!(py, "strict"))?.unwrap_or(false), revalidate: Revalidate::from_st...