rest - Swagger is escaping incorrectly -
when make request swagger, i'm seeing in curl section:
curl -x post --header "content-type: application/json" --header "accept: */*" -d "[\"{\",\" \\"list\\": [\",\"........ as can see, curl version of request being made swagger, escaped. don't know why, swagger adding escaped chars request, , server rejecting request invalid format json errors. now, happening services expecting requests this:
{ "list": [ ... ] } even curl provided swagger isn't working command line. i'm using swagger v2.1.0. if remove escaping like:
{"list":[ ... ]} update:
if remove bad scaping the curl command, works command line, know there nothing wrong service.
Comments
Post a Comment