ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class ValidationFailure(BaseEntity): (source)

Constructor: ValidationFailure(**kwargs)

View In Hierarchy

Represent a validation failure.

Returns
orionis.schemas.entities.failure.ValidationFailureReturn a new immutable validation failure instance when instantiated.
Method toDict Return the failure as a plain dictionary.
Instance Variable field Identify the field that failed validation.
Instance Variable message Describe the validation failure.
Instance Variable rule Identify the validation rule that failed.

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method __init__ Initialize declared fields and public extra attributes.
Method __post_init__ Provide a no-op hook for subclass validation and normalization.
Method _dynamicAttributes Return public instance attributes that are not declared fields.
Method _validateExtraNames Validate names and storage for public extra attributes.
Method getFields Describe declared fields and, optionally, dynamic attributes.
Class Variable __slots__ Declare that this class introduces no additional instance slots.
Class Variable _orionis_field_metadata Cache declared fields and normalized type names for each concrete class.
def toDict(self) -> dict: (source)

Return the failure as a plain dictionary.

Serialize the three string fields directly without the recursive conversion performed by BaseEntity.toDict.

Returns
dict{"field": ..., "rule": ..., "message": ...}

Identify the field that failed validation.

Describe the validation failure.

Identify the validation rule that failed.