controller.utilities.configuration.CustomEnvModel.model_validate
- classmethod CustomEnvModel.model_validate(obj, *, strict=None, from_attributes=None, context=None)
Validate a pydantic model instance.
- Parameters:
obj (
Any) – The object to validate.strict (
bool|None, default:None) – Whether to enforce types strictly.from_attributes (
bool|None, default:None) – Whether to extract data from object attributes.context (
dict[str,Any] |None, default:None) – Additional context to pass to the validator.
- Raises:
ValidationError – If the object could not be validated.
- Return type:
TypeVar(Model, bound= BaseModel)- Returns:
The validated model instance.