I've got the json
{
"message": {
"foo": "foo",
"bar": "bar"
}
}
And parser:
parser = reqparse.RequestParser(bundle_errors=True)
parser.add_argument('foo', type=str, required=True)
parser.add_argument('bar', type=str, required=True)
args = parser.parse_args()
And the error is : {'foo': 'Missing required parameter in the JSON body or the post body or the query string', 'bar': 'Missing required parameter in the JSON body or the post body or the query string'}