ORIONIS API REFERENCE

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

Attach a custom type-mismatch error message to a field.

Use this inside Annotated to override the default msgspec "Expected <type>" error when the field value has the wrong type. It is the only way to provide a custom message for plain-type fields (e.g. code: Annotated[str, Message("Must be a string.")]).

It may also be combined with constraint metadata to cover both type errors and constraint errors on the same field.

Parameters
textThe custom error message shown when type validation fails.
Class Variable text Undocumented

Inherited from DocumentMetadata:

Class Variable __slots__ Undocumented

Undocumented