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)
Represent a validation failure.
| Returns | |
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 | __post |
Provide a no-op initialization hook for subclass validation. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Class Variable | __slots__ |
Undocumented |
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": ...} |