daiquiri.core.schema.validators
OneOf(choices, **kwargs)
Single enum type validator
Parameters:
Name | Type | Description | Default |
---|---|---|---|
choices
|
list
|
List of choices |
required |
Source code in daiquiri/core/schema/validators.py
RequireEmpty(**kwargs)
A RequireEmpty field
Requires that this particular field is empty by combining NoneValidator and EmptyField
ValidatedRegexp(pattern, **kwargs)
A regexp validated fields.Str
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pattern
|
the pattern to use from the above dictionary |
required |
Kwargs:
passed to the field