api-validator icon indicating copy to clipboard operation
api-validator copied to clipboard

The "application/x-www-form-urlencoded" type is not supported

Open shadowhand opened this issue 7 years ago • 2 comments

I attempted to load the official Swagger example "PetStore" into this tool and it failed:

Fatal error: Uncaught InvalidArgumentException: formData is not a valid parameter location in vendor/eleven-labs/api-validator/src/Definition/Parameters.php on line 179

The formData attribute is used with "consumes": "application/x-www-form-urlencoded" content type.

Refs #10

shadowhand avatar Nov 10 '18 21:11 shadowhand

@shadowhand Hi,

You are right, this library was mainly crafted to support JSON APIs. Back in the days, I wasn't interested to support anything else. I'll sure look into it.

guillemcanal avatar Nov 10 '18 23:11 guillemcanal

We still need to support data validation from application/x-www-form-urlencoded requests

guillemcanal avatar Nov 11 '18 16:11 guillemcanal