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
This is an array of files, inside the cpp-qt5 generated code is declared as a ::OpenAPI::OptionalParam<QList<OAIHttpFileElement>> &file but than is accessed like if it was a single element: file.value().local_filename, causing the compilation to fail.
Description
The auto-generated code doesn't compile (after running CMake to generate the solution).
The problem seems to be related to this part of the YAML:
This is an array of files, inside the cpp-qt5 generated code is declared as a
::OpenAPI::OptionalParam<QList<OAIHttpFileElement>> &file
but than is accessed like if it was a single element:file.value().local_filename
, causing the compilation to fail.openapi-generator version
5.1.0
OpenAPI declaration file content or url
Command line used for generation
java -DskipFormModel=false -jar openapi-generator-cli-5.1.0.jar generate -i openapi.yaml -g cpp-qt5-client -o qt5
Steps to reproduce
cmake client
Related issues/PRs
Seems to be similar to: #3271
Suggest a fix/enhancement
The problem seems to happen only with cpp-qt5, since using SPRING the generators handles correcly the resulting list
The text was updated successfully, but these errors were encountered: