Closed ure closed 3 years ago
elsif (ref $param->{schema} eq 'HASH' and schema_type($param->{schema}) eq 'string') {
shouldn't this be
elsif (defined $param->{schema} && (ref $param->{schema} eq 'HASH' and schema_type($param->{schema}) eq 'string') ) {
ref will never return "undef", so the issue was how schema_type() was used. Will be part of the next release.
Hi there,
After we did an update to the latest release (coming from the previous release) we get these Use of uninitialized value in string eq at /app/local/lib/perl5/Mojolicious/Plugin/OpenAPI/Parameters.pm line 131. I'll take a look in the code lateron