dredd
dredd copied to clipboard
Empty body with x-www-form-urlencoded
Describe the bug
Trying to send a post with x-www-form-urlencoded
, i receive this post from another server that is not under my control, so iam testing if my server can handle it properly.
Iam using openapi: 3.0.0
To Reproduce I tried this
/awesome-endpoint
post:
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
foo:
type: string
example: "bar"
and
/awesome-endpoint
post:
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: string
example: "foo=bar"
I point the url to pipedream, and both tries come with empty body
{
"method": "POST",
"path": "/awesome-endpoint",
"query": {},
"headers": {
"content-length": "0",
"accept": "text/plain",
"content-type": "application/x-www-form-urlencoded",
"user-agent": "Dredd/14.1.0 (Darwin 20.6.0; x64)"
},
"bodyRaw": "",
"body": {}
}
Expected behavior Post body with data on it
What's your dredd --version
output?
dredd v14.1.0 (Darwin 20.6.0; x64)
Does dredd --loglevel=debug
uncover something?
Nothing relevant