I need to check for empty string in JSON field for a post request in flask using reqparse. Can I achieve it with flask reqparse module?
I have tried :
self.parser.add_argument('name', 
                 type=str, 
                 required=True, 
                 trim=True, 
                 location='json'
                )
self.parser.parse_args()
It is checking if the name field in {"name":"xyz"} is present, However I also want to check for empty values {"name":""} , so that I can throw error to user that name can not be empty. Is it possible to do that using reqparse ?
 
     
     
    