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.
module documentation
Undocumented
| Function | _check |
Reject extra schema validation rules the native validator cannot enforce. |
| Function | _check |
Inspect metadata across nested fields and recursive type declarations. |
| Function | _inline |
Inline acyclic local references while preserving recursive definitions. |
| Function | _schema |
Represent an unconstrained JSON value without inventing custom type schemas. |
| Function | _validate |
Require additional schema keywords to match native validation behavior. |
| Function | compile |
Produce the native JSON Schema, preserving local references and constraints. |
| Function | convert |
Validate native rules for Schema and strict msgspec types otherwise. |
| Constant | _ANNOTATION |
Undocumented |
| Constant | _DEFINITIONS |
Undocumented |
| Constant | _DIALECT |
Undocumented |
| Constant | _META |
Undocumented |
def _inline(value:
object, definitions: dict[ str, object], ancestors: tuple[ str, ...], referenced: set[ str]) -> object:
(source)
¶
Inline acyclic local references while preserving recursive definitions.
| Parameters | |
value:object | Value to inspect, transform or validate. |
definitions:dict[str, object] | Value supplied for definitions. |
ancestors:tuple[str, ...] | Value supplied for ancestors. |
referenced:set[str] | Value supplied for referenced. |
| Returns | |
object | Result of the operation described above. |
def _validate_schema_additions(native:
dict[ str, object], additions: list[ dict[ str, object]]):
(source)
¶
Require additional schema keywords to match native validation behavior.
| Parameters | |
native:dict[str, object] | JSON Schema generated from native type constraints. |
additions:list[dict[str, object]] | Additional keywords declared by the application. |
| Returns | |
None | Every validation keyword matches a native constraint. |
| Raises | |
ValueError | If an additional keyword advertises an unenforced constraint. |
Undocumented
| Value |
|