Module ImportFrom alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore BoolOpOr NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Raise Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad TryExcept body Expr Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults kwarg body Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad body FunctionDef arguments args defaults vararg kwarg body If BoolOpOr UnaryOpNot NameLoad CompareIs Call AttributeLoad NameLoad attr Str Num Num body Assign NameStore SubscriptLoad NameLoad Slice Num Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad
N/A __future__ unicode_literals absolute_import N/A functools N/A inspect common * datastructures Context exceptions FieldError DataError transforms import_loop validation_converter undefined Undefined validate N/A N/A cls instance_or_dict trusted_data partial strict convert context N/A None False False True None kwargs N/A N/A 
    Validate some untrusted data using a model. Trusted data can be passed in
    the `trusted_data` parameter.

    :param cls:
        The model class to use as source for validation. If given an instance,
        will also run instance-level validators on the data.
    :param instance_or_dict:
        A ``dict`` or ``dict``-like structure for incoming data.
    :param partial:
        Allow partial data to validate; useful for PATCH requests.
        Essentially drops the ``required=True`` arguments from field
        definitions. Default: False
    :param strict:
        Complain about unrecognized keys. Default: False
    :param trusted_data:
        A ``dict``-like structure that may contain already validated data.
    :param convert:
        Controls whether to perform import conversion before validating.
        Can be turned off to skip an unnecessary conversion step if all values
        are known to have the right datatypes (e.g., when validating immediately
        after the initial import). Default: True

    :returns: data
        ``dict`` containing the valid raw_data plus ``trusted_data``.
        If errors are found, they are raised as a ValidationError with a list
        of errors attached.
     N/A context N/A context N/A get_validation_context partial partial strict strict convert convert N/A errors N/A N/A N/A N/A data N/A import_loop cls instance_or_dict trusted_data trusted_data context context kwargs N/A N/A N/A DataError N/A exc N/A N/A errors N/A exc messages N/A data N/A exc partial_data N/A partial_data N/A dict N/A N/A key value N/A N/A key value N/A N/A data items N/A value Undefined N/A N/A N/A errors update N/A _validate_model cls data partial_data context N/A errors N/A N/A N/A DataError errors partial_data N/A data N/A _validate_model N/A N/A cls data partial_data context N/A N/A N/A 
    Validate data using model level methods.

    :param cls:
        The Model class to validate ``data`` against.

    :param data:
        A dict with data to validate. Invalid items are removed from it.

    :returns:
        Errors of the fields that did not pass validation.
     N/A errors N/A N/A invalid_fields N/A N/A N/A field_name field N/A iteritems N/A cls _fields N/A N/A N/A N/A field_name N/A cls _validator_functions N/A field_name partial_data N/A N/A value N/A data N/A field_name N/A N/A N/A N/A N/A N/A cls _validator_functions N/A field_name cls partial_data value context N/A N/A N/A FieldError N/A exc N/A N/A field N/A N/A cls _fields N/A field_name N/A serialized_field_name N/A N/A field serialized_name field_name N/A N/A errors N/A serialized_field_name N/A exc messages N/A N/A N/A invalid_fields append field_name N/A field_name invalid_fields N/A N/A N/A N/A data pop field_name N/A N/A N/A partial_data pop field_name N/A errors N/A get_validation_context N/A N/A N/A options N/A N/A validation_options N/A field_converter partial strict convert validate new validation_converter False False True True False N/A N/A N/A validation_options update options N/A N/A Context validation_options N/A prepare_validator N/A N/A func argcount N/A N/A N/A N/A N/A len N/A N/A N/A inspect getargspec func args argcount N/A newfunc N/A N/A N/A args kwargs N/A N/A N/A N/A kwargs N/A N/A N/A kwargs pop context 0 0 N/A N/A args N/A args N/A -1 N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A newfunc N/A func N/A N/A __all__ N/A module_exports __name__