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 Schema: (source)
Undocumented
| Static Method | validate |
Validate payload against a schema and return a typed instance. |
| Async Static Method | validate |
Validate a payload while awaiting rules that require native I/O. |
| Class Variable | __slots__ |
Undocumented |
Validate payload against a schema and return a typed instance.
| Parameters | |
payload:object | Input data to convert and validate. |
schema:type[Schema] | Schema class used for conversion and rule validation. |
| Returns | |
Schema | Converted schema instance. |
| Raises | |
ValidationException | If payload conversion fails or schema rules raise validation errors. The exception carries every failure found, indexed by field name. |
Validate a payload while awaiting rules that require native I/O.
| Parameters | |
payload:object | Input data to convert and validate. |
schema:type[Schema] | Schema class with precompiled conversion and rule metadata. |
| Returns | |
Schema | Converted instance after all applicable rules succeed. |
| Raises | |
ValidationException | If conversion or synchronous or asynchronous rules reject fields. |