You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There exists the defenition of "openapi.valid_input" helper in Mojolicious::Plugin::OpenAPI package.
This defenition looks like the below one:
$app->helper('openapi.valid_input' => sub { helper_validate($[0]) ? undef : $[0] });
I suppose that the $_[1] argument was omitted in the call of "_helper_validate" method.
This omission makes impossible to pass "$args" variable into this method.
I presume that the proper version of this line should look as follows:
Why do you want to pass arguments into $c->openapi->valid_input()? I think maybe the documentation is wrong, and also how $c->openapi->validate works. I'm guessing you want $c->openapi->validate, but without the need to pass in {auto_render => 0} ?
- Add support for v3 object parameters #184
Contributor: SebMourlhou
- Add support for passing in custom spec to $c->openapi->render_spec #189
- Fix handling 404 and 501 in v3 #179
- Fix issue when "nullable" is stored inside JSON::Validator::Ref #183
- Fix $c->openapi->validate helper #187
There exists the defenition of "openapi.valid_input" helper in Mojolicious::Plugin::OpenAPI package.
This defenition looks like the below one:
$app->helper('openapi.valid_input' => sub { helper_validate($[0]) ? undef : $[0] });
I suppose that the $_[1] argument was omitted in the call of "_helper_validate" method.
This omission makes impossible to pass "$args" variable into this method.
I presume that the proper version of this line should look as follows:
Please fix it, if you are agree.
Thanks in advance.
The text was updated successfully, but these errors were encountered: