eleven-labs/api-validator

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

shadowhand opened this issue · 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 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.

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