TT#179700 fix inverted mandatory field ind (swagger)

Change-Id: I2a92d8a1fbacf6f21045180c3aa1dfa32647602f
mr11.0
Rene Krenn 3 years ago
parent 8250cad931
commit 8afc819c31

@ -478,7 +478,7 @@ sub _fields_to_swagger_schema {
}
$p->{description} = $f->{description};
if (grep {m/^null$/} @{ $f->{types} // [] }) {
unless (grep {m/^null$/} @{ $f->{types} // [] }) {
push @{ $e->{required} }, $f->{name};
}

Loading…
Cancel
Save