You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if argument: a possibly ordered dictionary of type: converter or (*types): converter.
- For old python support, a list of key/val tuples is supported.
- '*': <> can be used to indicate "the rest"
- None should be used for the none type
- Is(x) for constant-only converters
if argument: a single converter can be passed, in which case it will be considered '*'
if several converters match, they will be tried in order until no exception is raised / no CONVERSION_FAILED is returned (returning None is considered a successful conversion)
matching converters will be called even if received value is of a valid type, except if a specific option skip_matching_converters_if_valid=True is set now in Fast route without trying converters #30
A few requirements/ideas:
both as argument and as decorator. both can be specified. Decorator iswill be handled in@<field_name>.converter(*types)
@<field>.converter
decorator to add a converter to a field #28- For old python support, a list of key/val tuples is supported.
-
'*': <>
can be used to indicate "the rest"-
None
should be used for the none type- Is(x) for constant-only converters
matching converters will be called even if received value is of a valid type, except if a specific optionnow in Fast route without trying converters #30skip_matching_converters_if_valid=True
is setby default after conversion, validation will happen as always. Anow in Ability for a converter to disable validation if conversion is successful #29validate_after_converting=False
argument or converter option would also be needed to change this behaviour.The text was updated successfully, but these errors were encountered: