Open nige123 opened 2 years ago
This is currently not supported I'm afraid. (Currently working on https://github.com/jhthorsen/mojolicious-plugin-openapi/pull/223) I don't know when I will get around to it, but if someone wants to hack on it, this is (probably) the place that needs to be changed: https://github.com/jhthorsen/openapi-client/blob/master/lib/OpenAPI/Client.pm#L164-L169
PR is more than welcome!
It is not easy to implement a PR without knowing the design ideas of the current development. From my perspective the starting point is the JSON::Validator::Schema::OpenAPIv3 implementation
The above OpenAPI spec extracts from nige123 leads to an undefined $name
. The original name (params) is still a key of the $param
hashref. Both $name
(undef) and $params
are passed to the query-type coderef. Is this part ok and stable?
I'm trying to pass filter variables in a GET request to an OpenAPI route with this specification:
I've tried various different ways of passing the data at request time:
What is the correct way to do this?
I'm currently getting this warning/error:
Use of uninitialized value $name in exists at /usr/local/share/perl/5.26.1/OpenAPI/Client.pm line 204