swagger-coverage icon indicating copy to clipboard operation
swagger-coverage copied to clipboard

Incorrect display of method coverage with file upload with body

Open andreevich96 opened this issue 2 years ago • 0 comments

I'm submitting a ...

  • [ ] bug report

What is the current behavior?

When working with a controllers method to which you can send a file and the meta, swagger coverage reports that the file and the meta is not empty - twice. But I'm definitely sending a non-empty file and meta. Swagger coverage - image Method - image

There is an exemple of request:

 given()
                .auth()
                .oauth2(accessToken)
                .multiPart("file", new File(pathName)), "application/vnd.ms-excel")
                .multiPart("meta", meta, "application/json")
                .when().post("v1/method-name/xls")).then()
                

andreevich96 avatar Feb 21 '23 07:02 andreevich96