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
The generated PHP client code for the DTO in Java with the Swagger annotation is incorrect. The error occurs due to the improper handling of the nested map and array structure in the ObjectSerializer. This results in a PHP Fatal error: Uncaught Error: Class "int[]][" not found in …/lib/ObjectSerializer.php:299
The server code the nasty data structure comes from:
Description
The generated PHP client code for the DTO in Java with the Swagger annotation is incorrect. The error occurs due to the improper handling of the nested map and array structure in the
ObjectSerializer
. This results in a PHP Fatal error: Uncaught Error: Class "int[]][" not found in …/lib/ObjectSerializer.php:299The server code the nasty data structure comes from:
The client code generated looks like this:
The code extracted from the ObjectSerializer:
As you can see its: int [ ] ] [ and not string , int [ ]
Swagger-codegen version
2.4.42
Swagger declaration file content or url
(for YAML code) or
Suggest a fix/enhancement
By counting the open and closed brackets, the correct position for splitting can be determined.
The text was updated successfully, but these errors were encountered: