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
Unsure what i should enter here:
i am using vcpkg, c++, CMake and qt,
platform: win10
ide: vs2019
Steps to reproduce
Install dependencies
If you are using vcpkg:
My vcpkg.json
{
"name": "openapisensorik40",
"version-string" : "1.0",
"description": "project to implement the openapisensorik40",
"dependencies": [
"qt5-base",
"openssl"
]
}
Download the mentioned oai specification
Run open-api-generator
Run Cmake to configure and build the library
An error is thrown, something like:
qHash: none of the 37 overloads could convert argument types for
OAICommon_identification_identification_1
OAICommon_identification_identification
Related issues/PRs
None?
Suggest a fix
From my point of view the issue is cause in some missing definition in order to make qhash(needed by QSet ) with a custom class work:
Refer: https://doc.qt.io/qt-5/qhash.html#qhash
I fixxed the issue by adding an operator== and a hash function to the classes.
Wihtin OAICommon_identification_identification_1.h:
Add following function/ properties: to OAICommon_identification_identification_1
Within class definition (public)
Wihtin OAICommon_identification_identification_2.h:
Add following function/ properties: to OAICommon_identification_identification_2
Within class definition (public)
Well i think it is possible to add this to the corresponding mustache file, but right now i am pretty unsure where to start and if it is enough or need some additional coding.
Can someone advice ?
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
First of all: Props to all contributors and thanks for the openapi-generator 😃
Description
The generated code produced by the qt-client generator does not compile, if a scheme is included which includes lists of unique items.
openapi-generator version
OpenAPI declaration file content or url
https://app.swaggerhub.com/apis/Pepperl-Fuchs/Sensorik4.0/1.0.0#/common.identification.identification_1
alternative:
www.pepperl-fuchs.com/openapi
-> click on Pepperl+Fuchs Sensorik4.0® will be redirected
The issue is rooted in the SCHEMAS:
which include sets of unique objects.
Generation Details
Unsure what i should enter here:
i am using vcpkg, c++, CMake and qt,
platform: win10
ide: vs2019
Steps to reproduce
If you are using vcpkg:
My vcpkg.json
An error is thrown, something like:
qHash: none of the 37 overloads could convert argument types for
OAICommon_identification_identification_1
OAICommon_identification_identification
Related issues/PRs
None?
Suggest a fix
From my point of view the issue is cause in some missing definition in order to make qhash(needed by QSet ) with a custom class work:
Refer: https://doc.qt.io/qt-5/qhash.html#qhash
I fixxed the issue by adding an operator== and a hash function to the classes.
Wihtin OAICommon_identification_identification_1.h:
Add following function/ properties: to OAICommon_identification_identification_1
Within class definition (public)
End of file prior #endif
Wihtin OAICommon_identification_identification_2.h:
Add following function/ properties: to OAICommon_identification_identification_2
Within class definition (public)
End of file prior #endif
Well i think it is possible to add this to the corresponding mustache file, but right now i am pretty unsure where to start and if it is enough or need some additional coding.
Can someone advice ?
The text was updated successfully, but these errors were encountered: