Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant