jhthorsen / mojolicious-plugin-openapi

OpenAPI / Swagger plugin for Mojolicious
54 stars 44 forks source link

->openapi->valid_input mangles headers #242

Closed tomascohen closed 1 year ago

tomascohen commented 1 year ago

Just that, once you call it, headers get touched in bad ways :-D

jhthorsen commented 1 year ago

That is by design: Specifying a collectionFormat will turn the input data into an array. I think you might have been tricked by two things:

Also since a collectionFormat turns the string into an array, then you cannot validate the input twice.