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 Coerce(ValidationMetadata): (source)
Convert a field to its declared type before validating its constraints.
Conversion follows the native non-strict conversion rules. On collections and nested schemas, the marker also applies to their values and fields; dictionary keys remain strict. Unmarked siblings are unaffected.
Invalid input is reported through the normal validation errors rather than replaced with a default. Direct construction does not run coercion.
Inherited from ValidationMetadata:
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |