Introduce a new serializeMapValue template function
- Rename toStringValue(const QMap<QString, T> &val ....)
to serializeMapValue(const QMap<QString, T> &mapValue ...)
and move it to api-base-header class.
The reason is toStringValue() should not have additional arguments,
like keyValueDelimiter, itemDelimiter.
At the same moment those arguments are OK for serializeArrayValue() and
serializeJsonValue().
Also, it is better to edit API of serializeArrayValue(),
serializeJsonValue(), serializeMapValue() together. See the next patches.
- Delete QString toStringValue(const QList<T> &val, QAnyStringView
delimiter), since toStringValue() should not have additional
arguments. And this method is not used after this change.
- Delete duplicating logic:
parameterToString() and optionParameterToString(), since
- parameterToString() was not used anywhere.
- optionParameterToString() is replaced with other function calls and
also not used anymore.
Change-Id: Ib354f840022d0a19e2d32b07972a09f604edf5f2
Signed-off-by: Tatiana Borisova <tatiana.borisova@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | a399d770d5487bd75335643be7069cb004f5ef41 |
| parent | 8fd24a43914e6d1025e6d4332ea7c55e70a75b6f |
| author | Tatiana Borisova <tatiana.borisova@qt.io> |
| committer | Rym Bouabid <rym.bouabid@qt.io> |
| commit time | Thu, 11 Sep 2025 18:56:07 +0200 |
- 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/helpers-body.mustache
- M src/main/resources/cpp-qt6-client/helpers-header.mustache
- M tests/auto/colorpalette/client/client/QtOAIBaseApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIBaseApi.h
- M tests/auto/colorpalette/client/client/QtOAIDefaultApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIHelpers.cpp
- M tests/auto/colorpalette/client/client/QtOAIHelpers.h
- M tests/auto/colorpalette/qmlclient/client/OAIBaseApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIBaseApi.h
- M tests/auto/colorpalette/qmlclient/client/OAIDefaultApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIHelpers.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIHelpers.h
- M tests/auto/mediatype/client/client/QtOAIBaseApi.cpp
- M tests/auto/mediatype/client/client/QtOAIBaseApi.h
- M tests/auto/mediatype/client/client/QtOAIHelpers.cpp
- M tests/auto/mediatype/client/client/QtOAIHelpers.h
- M tests/auto/openapi2.0/client/client/QtOAIBaseApi.cpp
- M tests/auto/openapi2.0/client/client/QtOAIBaseApi.h
- M tests/auto/openapi2.0/client/client/QtOAIHelpers.cpp
- M tests/auto/openapi2.0/client/client/QtOAIHelpers.h
- M tests/auto/operation-parameters/client/client/QtOAIBaseApi.cpp
- M tests/auto/operation-parameters/client/client/QtOAIBaseApi.h
- M tests/auto/operation-parameters/client/client/QtOAIHelpers.cpp
- M tests/auto/operation-parameters/client/client/QtOAIHelpers.h
- M tests/auto/operation-parameters/client/client/QtOAITestApi.cpp
- M tests/auto/petstore/client/client/QtOAIBaseApi.cpp
- M tests/auto/petstore/client/client/QtOAIBaseApi.h
- M tests/auto/petstore/client/client/QtOAIHelpers.cpp
- M tests/auto/petstore/client/client/QtOAIHelpers.h
- M tests/auto/petstore/client/client/QtOAIUserApi.cpp
- 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/OAIUserApi.cpp