Built-in converters
You can reference these in route patterns (e.g.,<url:url>) or via type hints:
str,int,float,boolurlfor HTTP/HTTPS URLsuuidfor UUID stringsjsonfor JSON objects/arrays (parsed into Python types)
Custom converters
Define your own converter when you need stricter rules or domain-specific validation:<port:port>) and annotate the parameter to keep type checkers happy.
Validation experience
- Errors surface before your function runs, with messages that include the expected type.
- Help text shows converter names so users know what each argument expects.
- Combine converters with Options & Flags to accept structured input everywhere.