[OAS] Update Operation parameters implementation
- See used OP serialization rules here:
https://spec.openapis.org/oas/v3.1.1.html#style-values
- update the content of getParamStylePrefix, getParamStyleSuffixName
and getParamStyleDelimiter methods according to the rules.
- add getParamStyleAssignOperator() method to manage assigning
symbol for object's serializations.
- move AnyType(QJsonValue) serialization to the separate reusable
method: QString serializeJsonValue(..)
- move array's serialization to the separate reusable method:
template<typename T> QString serializeArrayValue(..)
- regenerate all test client apps accordingly with new templates
- fix deepObject serialization
- fix array's serialization
- remove QSKIP macros from test-cases, since they pass now.
- fix QUrl::toPercentEncoding usage. The encoding is required for PATH
and QUERY parameter values, but not for delimiters, prefixes, etc.
Except the case with space/pipeDelimiters. The SPEC recommending to
encode delimiters for them (see example in the table
https://spec.openapis.org/oas/v3.1.1.html#style-values)
- add run_all() in the generate.sh to run and re-generate all clients
locally.
NOTE: A back port for openapi2.0 arrays in the next follow up commit.
Task-number: QTBUG-138564
Change-Id: I2c6090e9eb6c2136b155781e007c0e123178deb0
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | 19fb8239a16894cff193bb280839763e61a7e0b1 |
| parent | aad15d9dd501437df955c2702c3596df43f6195b |
| author | Tatiana Borisova <tatiana.borisova@qt.io> |
| committer | Tatiana Borisova <tatiana.borisova@qt.io> |
| commit time | Mon, 4 Aug 2025 19:25:55 +0200 |
- M generate.sh
- M src/main/resources/cpp-qt6-client/HttpRequest.cpp.mustache
- M src/main/resources/cpp-qt6-client/api-base-body.mustache
- M src/main/resources/cpp-qt6-client/api-base-header.mustache
- M src/main/resources/cpp-qt6-client/api-body.mustache
- M src/main/resources/cpp-qt6-client/api-header.mustache
- M src/main/resources/cpp-qt6-client/helpers-body.mustache
- M src/main/resources/cpp-qt6-client/helpers-header.mustache
- M tests/auto/colorpalette/client/client/OAIBaseApi.cpp
- M tests/auto/colorpalette/client/client/OAIBaseApi.h
- M tests/auto/colorpalette/client/client/OAIColorsApi.cpp
- M tests/auto/colorpalette/client/client/OAIColorsApi.h
- M tests/auto/colorpalette/client/client/OAIDefaultApi.cpp
- M tests/auto/colorpalette/client/client/OAIDefaultApi.h
- M tests/auto/colorpalette/client/client/OAIHelpers.cpp
- M tests/auto/colorpalette/client/client/OAIHelpers.h
- M tests/auto/colorpalette/client/client/OAIHttpRequest.cpp
- M tests/auto/colorpalette/client/client/OAIRegisterApi.cpp
- M tests/auto/colorpalette/client/client/OAIRegisterApi.h
- M tests/auto/colorpalette/client/client/OAIUsersApi.cpp
- M tests/auto/colorpalette/client/client/OAIUsersApi.h
- M tests/auto/colorpalette/qmlclient/client/OAIBaseApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIBaseApi.h
- M tests/auto/colorpalette/qmlclient/client/OAIColorsApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIColorsApi.h
- M tests/auto/colorpalette/qmlclient/client/OAIDefaultApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIDefaultApi.h
- M tests/auto/colorpalette/qmlclient/client/OAIHelpers.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIHelpers.h
- M tests/auto/colorpalette/qmlclient/client/OAIHttpRequest.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIRegisterApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIRegisterApi.h
- M tests/auto/colorpalette/qmlclient/client/OAIUsersApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIUsersApi.h
- M tests/auto/operation-parameters/client/OperationParameters/OperationParameters.cpp
- M tests/auto/operation-parameters/client/client/OAIBaseApi.cpp
- M tests/auto/operation-parameters/client/client/OAIBaseApi.h
- M tests/auto/operation-parameters/client/client/OAIHelpers.cpp
- M tests/auto/operation-parameters/client/client/OAIHelpers.h
- M tests/auto/operation-parameters/client/client/OAIHttpRequest.cpp
- M tests/auto/operation-parameters/client/client/OAITestApi.cpp
- M tests/auto/operation-parameters/client/client/OAITestApi.h
- M tests/auto/petstore/client/UserApiTest/UserApiTests.cpp
- M tests/auto/petstore/client/client/OAIBaseApi.cpp
- M tests/auto/petstore/client/client/OAIBaseApi.h
- M tests/auto/petstore/client/client/OAIHelpers.cpp
- M tests/auto/petstore/client/client/OAIHelpers.h
- M tests/auto/petstore/client/client/OAIHttpRequest.cpp
- M tests/auto/petstore/client/client/OAIPetApi.cpp
- M tests/auto/petstore/client/client/OAIPetApi.h
- M tests/auto/petstore/client/client/OAIStoreApi.cpp
- M tests/auto/petstore/client/client/OAIStoreApi.h
- M tests/auto/petstore/client/client/OAIUserApi.cpp
- M tests/auto/petstore/client/client/OAIUserApi.h
- M tests/auto/petstore/qmlclient/client/OAIBaseApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIBaseApi.h
- M tests/auto/petstore/qmlclient/client/OAIHelpers.cpp
- M tests/auto/petstore/qmlclient/client/OAIHelpers.h
- M tests/auto/petstore/qmlclient/client/OAIHttpRequest.cpp
- M tests/auto/petstore/qmlclient/client/OAIPetApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIPetApi.h
- M tests/auto/petstore/qmlclient/client/OAIStoreApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIStoreApi.h
- M tests/auto/petstore/qmlclient/client/OAIUserApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIUserApi.h
- M tests/auto/petstore/server/src/handlers/OAIUserApiHandler.cpp
- M tests/auto/petstore/server/src/requests/OAIUserApiRequest.cpp