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

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

@neuberoliveira

Description

@neuberoliveira

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions