|
def | __init__ (self, model, allow_null=False, skip_none=False, as_list=False, **kwargs) |
|
def | nested (self) |
|
def | output (self, key, obj, ordered=False, **kwargs) |
|
def | schema (self) |
|
def | clone (self, mask=None) |
|
def | __init__ (self, default=None, attribute=None, title=None, description=None, required=None, readonly=None, example=None, mask=None, **kwargs) |
|
def | format (self, value) |
|
def | output (self, key, obj, **kwargs) |
|
def | __schema__ (self) |
|
Allows you to nest one set of fields inside another.
See :ref:`nested-field` for more information
:param dict model: The model dictionary to nest
:param bool allow_null: Whether to return None instead of a dictionary
with null keys, if a nested dictionary has all-null keys
:param bool skip_none: Optional key will be used to eliminate inner fields
which value is None or the inner field's key not
exist in data
:param kwargs: If ``default`` keyword argument is present, a nested
dictionary will be marshaled as its value if nested dictionary is
all-null keys (e.g. lets you return an empty JSON object instead of
null)