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)
Represent a validation failure.
| Returns | |
orionis.schemas.entities.failure.ValidationFailure | Return a new immutable validation failure instance when instantiated. |
| Method | to |
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 | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | __init__ |
Initialize declared fields and public extra attributes. |
| Method | __post |
Provide a no-op hook for subclass validation and normalization. |
| Method | _dynamic |
Return public instance attributes that are not declared fields. |
| Method | _validate |
Validate names and storage for public extra attributes. |
| Method | get |
Describe declared fields and, optionally, dynamic attributes. |
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
| Class Variable | _orionis |
Cache declared fields and normalized type names for each concrete class. |
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": ...} |