forked from loafle/openapi-generator-original
[PHP-NG] don't nullify mixed types (#17116)
This commit is contained in:
parent
1f5b590d5a
commit
3552935a5b
@ -149,7 +149,7 @@ public class PhpNextgenClientCodegen extends AbstractPhpCodegen {
|
||||
propType = prop.dataType;
|
||||
}
|
||||
|
||||
if ((!prop.required || prop.isNullable)) { // optional or nullable
|
||||
if ((!prop.required || prop.isNullable) && propType != "mixed") { // optional or nullable but not mixed
|
||||
propType = "?" + propType;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user