I have a existing test for a endpoint which was working fine with Karate 1.1.0 but after recent update to karate 1.2.0 it stopped working due to Jackson xml uncognised property exception test endpoint which accepts request body in terms of multipart/form-data. When I try to post data to endpoint with request body and a document as multipart fields which was working fine if I use karate core version as 1.1.0 but when I update to 1.2.0 it's not working and I'm hitting error
Exception occurred in Restapi class of ReponseEntity method com.fasterxml.jackson.databind.exc.UncognizedPropertyException: Unrecognized field "read"
My feature file:
Given url basetesturl + 'test1/test'
And header Content-Type ='multipart/form-data'
And header Authorization = "Bearer"+ Oathtoken
And multipart field documents= {read:'classpath:testdoc.pdf', filename:'testdoc.pdf'content:'application/pdf'
And multipart field Data= {read:'classpath:testreqpl.json', filename:'testreqpl.json'content:'multipart/form-data'
And method POST
Then status 200