You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The body is not parsed correctly when I send the Content-Type of application/json;charset=utf-8.
Minimal example
post-device.json:
{
"description": "Creates a new device",
"request": {
"method": "POST",
"path": "/devices",
"headers": {
"Content-Type":["application/json;charset=utf-8"] // Note- this line can be omitted with the same result
}
},
"response": {
"statusCode": 201,
"headers": {
"Content-Type": ["application/json"]
},
"body": "{\"deviceId\": \"{{fake.UUID}}\", \"externalId\":\"{{request.body.externalId}}\" }"
},
"control": {
"priority": 10
}
}
Great repo - thanks for all the hard work.
The body is not parsed correctly when I send the
Content-Type
ofapplication/json;charset=utf-8
.Minimal example
post-device.json
:Failing request from the console
Failing response (notice how
{{request.body.externalId}}
is present in the response body).Working request - note that content type has changed to be
"application/json"
(no charset).Working response
The text was updated successfully, but these errors were encountered: