Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Empty body with x-www-form-urlencoded #2108

Open
neuberoliveira opened this issue Aug 23, 2022 · 0 comments
Open

Empty body with x-www-form-urlencoded #2108

neuberoliveira opened this issue Aug 23, 2022 · 0 comments

Comments

@neuberoliveira
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant