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
Translate validation exceptions into structured field errors.
| Class | |
Translate validation exceptions into structured field errors. |
| Function | _get |
Return a class-owned mapping from encoded field names to declared types. |
| Constant | _CONSTRAINT |
Ordered patterns for identifying constraint types from msgspec error messages. |
| Constant | _MISSING |
Sentinel for distinguishing "not in cache" from "cached result is None". |
| Constant | _PATH |
Suffix msgspec appends to report the location of the offending value. |
| Constant | _PATH |
Path marker len used by exception_parser. |
| Constant | _PATH |
Keep quoted dictionary keys intact even when they contain dots or brackets. |
| Constant | MISSING |
Regular expressions for parsing msgspec error messages. |
Return a class-owned mapping from encoded field names to declared types.
Keep recursive annotations with their owning class so discarded schema types remain collectable. Inspect the exact class to avoid inherited plans.
| Parameters | |
schema:type | Msgspec struct class whose fields should be inspected. |
| Returns | |
dict[str, object] | Encoded field names mapped to their declared types. |
Ordered patterns for identifying constraint types from msgspec error messages.
| Value |
|
Keep quoted dictionary keys intact even when they contain dots or brackets.
| Value |
|
Regular expressions for parsing msgspec error messages.
| Value |
|