Subclass of Cerberus's Validator that adds some custom types and allows for the document to be a top-level array by setting is_array=True.
More...
|
def | __init__ (self, *Any args, **Any kwargs) |
|
bool | validate (self, list[dict[str, Any]] document, dict[str, Any]|None schema=None, bool update=False, Any|None context=None) |
|
dict[str, Any] | errors (self) |
|
def | get_type_default (self, str type_) |
|
def | get_default (self, dict[str, Any] field_schema) |
|
dict[str, Any] | add_defaults_to_doc (self, dict[str, Any] document, dict[str, Any] doc_schema) |
|
list[dict[str, Any]] | normalize_list (self, list[dict[str, Any]] document, dict[str, Any]|None schema=None) |
|
Subclass of Cerberus's Validator that adds some custom types and allows for the document to be a top-level array by setting is_array=True.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
*Any |
args, |
|
|
**Any |
kwargs |
|
) |
| |
◆ add_defaults_to_doc()
dict[str, Any] add_defaults_to_doc |
( |
|
self, |
|
|
dict[str, Any] |
document, |
|
|
dict[str, Any] |
doc_schema |
|
) |
| |
◆ errors()
dict[str, Any] errors |
( |
|
self | ) |
|
◆ get_default()
def get_default |
( |
|
self, |
|
|
dict[str, Any] |
field_schema |
|
) |
| |
◆ get_type_default()
def get_type_default |
( |
|
self, |
|
|
str |
type_ |
|
) |
| |
◆ normalize_list()
list[dict[str, Any]] normalize_list |
( |
|
self, |
|
|
list[dict[str, Any]] |
document, |
|
|
dict[str, Any] | None |
schema = None |
|
) |
| |
◆ validate()
bool validate |
( |
|
self, |
|
|
list[dict[str, Any]] |
document, |
|
|
dict[str, Any] | None |
schema = None , |
|
|
bool |
update = False , |
|
|
Any | None |
context = None |
|
) |
| |
The documentation for this class was generated from the following file: