{"action":"opened","issue":{"url":"https://api.github.com/repos/flask-restful/flask-restful/issues/738","repository_url":"https://api.github.com/repos/flask-restful/flask-restful","labels_url":"https://api.github.com/repos/flask-restful/flask-restful/issues/738/labels{/name}","comments_url":"https://api.github.com/repos/flask-restful/flask-restful/issues/738/comments","events_url":"https://api.github.com/repos/flask-restful/flask-restful/issues/738/events","html_url":"https://github.com/flask-restful/flask-restful/issues/738","id":298359777,"number":738,"title":"Wrong format of parameter got, when I using the list(string) as RequestParser","user":{"login":"thinksource","id":2766693,"avatar_url":"https://avatars0.githubusercontent.com/u/2766693?v=4","gravatar_id":"","url":"https://api.github.com/users/thinksource","html_url":"https://github.com/thinksource","followers_url":"https://api.github.com/users/thinksource/followers","following_url":"https://api.github.com/users/thinksource/following{/other_user}","gists_url":"https://api.github.com/users/thinksource/gists{/gist_id}","starred_url":"https://api.github.com/users/thinksource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinksource/subscriptions","organizations_url":"https://api.github.com/users/thinksource/orgs","repos_url":"https://api.github.com/users/thinksource/repos","events_url":"https://api.github.com/users/thinksource/events{/privacy}","received_events_url":"https://api.github.com/users/thinksource/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-19T17:55:23Z","updated_at":"2018-02-19T17:55:23Z","closed_at":null,"author_association":"NONE","body":"I use the last version of flask-restful:\r\nMy code like:\r\n\r\n```\r\nfrom flask_restful import Resource, reqparse\r\n\r\napilink_parser = reqparse.RequestParser()\r\napilink_parser.add_argument('provider_id', type=int,required=True)\r\napilink_parser.add_argument('name', type=str, required=True)\r\napilink_parser.add_argument('func_id', type=int)\r\napilink_parser.add_argument('method', type=str)\r\napilink_parser.add_argument('url', type=str)\r\napilink_parser.add_argument('parameter',type=list, location='json')\r\napilink_parser.add_argument(\"expectreturn\", type=list)\r\n\r\n\r\n@marshal_with(apilink_fields)\r\ndef post(self):\r\n    args = apilink_parser.parse_args()\r\n    print(args)  ####here I print the args\r\n    # user owns the task\r\n    task = APILink.create(**args)\r\n    return task, 201\r\n```\r\n\r\nMy json post data like:\r\n\r\n```\r\n{ \r\n\"name\":\"riskiqwhois\",\r\n\"provider_id\":1,\r\n\"func_id\":1,\r\n\"url\":\"myurl\",\r\n\"parameter\":[\"query\"],  //******//\r\n\"expectreturn\":[],\r\n\"method\":\"post\"\r\n }\r\n```\r\n\r\nBut the args in #### I print is :\r\n\r\n```\r\n {\r\n 'provider_id': 1, \r\n 'name': 'riskiqwhois', \r\n 'func_id': 1, \r\n 'method': 'post', \r\n 'url': 'myurl', \r\n 'parameter': ['q', 'u', 'e', 'r', 'y'], //******//\r\n 'expectreturn': None\r\n  }\r\n```\r\n\r\nWhy the star line is different, How to make it the list(string) if I only give one element of the list instead of list(char) value as the parameter?"}}
{"actor":{"display_login":"thinksource"}}