apimodel.parser#
Parser functions for various types.
Module Contents#
- apimodel.parser.get_validator(tp: object, *, model: Optional[type] = None) AnnotationValidator[source]#
Get a validator for the given type.
- async apimodel.parser.acast(tp: Type[T], value: object) T[source]#
Cast the value to the given type asynchronously.