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)

View In Hierarchy

Represent a validation failure.

Returns
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 __post_init__ Provide a no-op initialization hook for subclass validation.
Method getFields Describe field names, normalized types, defaults, and metadata.
Class Variable __slots__ Undocumented
def toDict(self) -> dict: (source)

Return the failure as a plain dictionary.

Overrides BaseEntity.toDict to bypass the generic asdict machinery (deep-copy, lambda, enum serializer) that would cost 5X more for a three-string struct. All fields are plain str, so no conversion is needed.

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

Identify the field that failed validation.

Describe the validation failure.

Identify the validation rule that failed.