- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for class_validators (0.28 sec)
-
fastapi/utils.py
alias: Optional[str] = None, mode: Literal["validation", "serialization"] = "validation", ) -> ModelField: """ Create a new response field. Raises if type_ is invalid. """ class_validators = class_validators or {} if PYDANTIC_V2: field_info = field_info or FieldInfo( annotation=type_, default=default, alias=alias ) else: field_info = field_info or FieldInfo()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.8K bytes - Viewed (0) -
tests/test_compat.py
from fastapi._compat import is_pv1_scalar_field field_info = FieldInfo() field = ModelField( name="foo", field_info=field_info, type_=Union[str, List[int]], class_validators={}, model_config=BaseConfig, ) assert not is_pv1_scalar_field(field) @needs_pydanticv2 def test_get_model_config(): # For coverage in Pydantic v2 class Foo(BaseModel):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 2.8K bytes - Viewed (0) -
fastapi/_compat.py
from pydantic import ( # type: ignore[assignment] BaseConfig as BaseConfig, # noqa: F401 ) from pydantic import ValidationError as ValidationError # noqa: F401 from pydantic.class_validators import ( # type: ignore[no-redef] Validator as Validator, # noqa: F401 ) from pydantic.error_wrappers import ( # type: ignore[no-redef] ErrorWrapper as ErrorWrapper, # noqa: F401 )
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 22.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java
} handlers.addAll(customAnnotationPropertyHandlers); handlers.add(injectionHandler); // Order is significant List<ClassValidator> validators = new ArrayList<>(2 + disabledAnnotations.size()); for (Class<? extends Annotation> annotation : disabledAnnotations) { validators.add(new DisabledAnnotationValidator(annotation)); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:37 UTC 2024 - 63K bytes - Viewed (0) -
maven-core/src/test/resources/apiv4-repo/junit/junit/4.13.1/junit-4.13.1.jar
lass); java.util.List validateAnnotatable(AnnotationValidator, org.junit.runners.model.FrameworkField); } org/junit/validator/AnnotationsValidator$ClassValidator.class package org.junit.validator; synchronized class AnnotationsValidator$ClassValidator extends AnnotationsValidator$AnnotatableValidator { private void AnnotationsValidator$ClassValidator(); Iterable getAnnotatablesForTe(org.junit.runners.model.TestClass); java.util.List validateAnnotatable(AnnotationValidator, org.junit.runners.model.TestClass);...
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Dec 19 19:08:55 UTC 2023 - 373.7K bytes - Viewed (0) -
testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 967.9K bytes - Viewed (0)