def request_args(self):
        """Use args_schema to parse request query arguments."""
        args = flask.request.args
        data_raw = {}

        for field_name, field in self.args_schema.fields.items():
            alternate_field_name = field.load_from if MA2 else field.data_key

            if alternate_field_name and alternate_field_name in args:
                field_name = alternate_field_name
            elif field_name not in args:
                # getlist will return an empty list instead of raising a
                # KeyError for args that aren't present.
                continue

            value = args.getlist(field_name)
            if not self.is_list_field(field) and len(value) == 1:
                value = value[0]

            data_raw[field_name] = value

        return self.deserialize_args(data_raw)
def request_args ( self ) : args = flask . request . args data_raw = { } for field_name , field in self . args_schema . fields . items ( ) : alternate_field_name = field . load_from if MA2 else field . data_key if alternate_field_name and alternate_field_name in args : field_name = alternate_field_name elif field_name not in args : continue value = args . getlist ( field_name ) if not self . is_list_field ( field ) and len ( value ) == 1 : value = value [ 0 ] data_raw [ field_name ] = value return self . deserialize_args ( data_raw )
Use args_schema to parse request query arguments.