def input_schema_clean(input_, input_schema):
    """
    Updates schema default values with input data.

    :param input_: Input data
    :type  input_: dict
    :param input_schema: Input schema
    :type  input_schema: dict
    :returns: Nested dict with data (defaul values updated with input data)
    :rtype: dict
    """
    if input_schema.get('type') == 'object':
        try:
            defaults = get_object_defaults(input_schema)
        except NoObjectDefaults:
            pass
        else:
            return deep_update(defaults, input_)
    return input_
def input_schema_clean ( input_ , input_schema ) : if input_schema . get ( 'type' ) == 'object' : try : defaults = get_object_defaults ( input_schema ) except NoObjectDefaults : pass else : return deep_update ( defaults , input_ ) return input_
Updates schema default values with input data.

    :param input_: Input data
    :type  input_: dict
    :param input_schema: Input schema
    :type  input_schema: dict
    :returns: Nested dict with data (defaul values updated with input data)
    :rtype: dict