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)
Validate structured input against declared fields and validation rules.
| Async Static Method | validate |
Validate a payload or existing struct and await its schema rules. |
| Class Variable | __slots__ |
Prevent per-instance dictionaries; the class is used statically. |
Validate a payload or existing struct and await its schema rules.
Coerce explicitly marked values before checking types and constraints. Leave other fields strict and preserve the original payload.
| Parameters | |
payload:object | Input data or root struct to expand and revalidate. |
schema:type[orionis.schemas.Schema] | Schema class used for conversion and rule validation. |
| Returns | |
orionis.schemas.Schema | Converted instance satisfying structural constraints and rules. |
| Raises | |
orionis.schemas.exceptions.ValidationException | If conversion, constraints or rules reject the payload. Include collected failures grouped by field. |