Add isObject variable into Path and Query blocks
- Instead of using straightforward logic and checking
the type is (isModel || isMap), we checked it as
(!isArray && !isPrimitive).
A straightforward variant seems a little bit better looking.
Also, move the checking to a separate variable.
Change-Id: I485213f7c9afb93ee884699ad94401a31eb68ef0
Reviewed-by: Rym Bouabid <rym.bouabid@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | 5c1442a076550b3894a52a20dea835865ea7622e |
| parent | 32ff0ff4426e36525ce1f2697dcfdd313a806eed |
| author | Tatiana Borisova <tatiana.borisova@qt.io> |
| committer | Tatiana Borisova <tatiana.borisova@qt.io> |
| commit time | Tue, 23 Sep 2025 15:07:42 +0000 |
- M src/main/resources/cpp-qt6-client/api-body.mustache
- M tests/auto/colorpalette/client/client/QtOAIColorsApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIDefaultApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIUsersApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIColorsApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIDefaultApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIUsersApi.cpp
- M tests/auto/openapi2.0/client/client/QtOAIFakeApi.cpp
- M tests/auto/operation-parameters/client/client/QtOAITestApi.cpp
- M tests/auto/petstore/client/client/QtOAIPetApi.cpp
- M tests/auto/petstore/client/client/QtOAIStoreApi.cpp
- M tests/auto/petstore/client/client/QtOAIUserApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIPetApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIStoreApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIUserApi.cpp