Add Media type fixes to the '{{bodyParams}}' block
- Add {{isBoolean}} block to serialize a bool type inside
{{bodyParams}}.
- Store ContentType header for all {{bodyParams}} types,
because it's the way how server can detect the type of
content inside client's messages.
- Add 'QByteArray m_requestContent' class member to track
a serialized content.
- Add 'application/json', 'application/octet-stream' and
'text/plain' media type tests.
- Re-generate clients.
Change-Id: Icbc0e21b0b1ccc6577abb1b44d314327b7627bc5
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | 4ac0bdbe716e3ed483dae1b8b938be031bcbbe8e |
| parent | 0df8d4ff52fd528c815b29585a170d7dfc90fad6 |
| author | Tatiana Borisova <tatiana.borisova@qt.io> |
| committer | Tatiana Borisova <tatiana.borisova@qt.io> |
| commit time | Fri, 15 Aug 2025 17:27:17 +0200 |
- M .gitignore
- M generate.sh
- M src/main/resources/cpp-qt6-client/api-body.mustache
- M src/main/resources/cpp-qt6-client/api-header.mustache
- 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/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/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/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
- A tests/auto/mediatype/client/CMakeLists.txt
- A tests/auto/mediatype/client/build-and-test.bash
- A tests/auto/mediatype/client/client/CMakeLists.txt
- A tests/auto/mediatype/client/client/Config.cmake.in
- A tests/auto/mediatype/client/client/OAIBaseApi.cpp
- A tests/auto/mediatype/client/client/OAIBaseApi.h
- A tests/auto/mediatype/client/client/OAIEnum.h
- A tests/auto/mediatype/client/client/OAIHelpers.cpp
- A tests/auto/mediatype/client/client/OAIHelpers.h
- A tests/auto/mediatype/client/client/OAIHttpFileElement.cpp
- A tests/auto/mediatype/client/client/OAIHttpFileElement.h
- A tests/auto/mediatype/client/client/OAIHttpRequest.cpp
- A tests/auto/mediatype/client/client/OAIHttpRequest.h
- A tests/auto/mediatype/client/client/OAIObject.h
- A tests/auto/mediatype/client/client/OAIPostApplicationJsonSeveralObjects_request.cpp
- A tests/auto/mediatype/client/client/OAIPostApplicationJsonSeveralObjects_request.h
- A tests/auto/mediatype/client/client/OAIServerConfiguration.h
- A tests/auto/mediatype/client/client/OAIServerVariable.h
- A tests/auto/mediatype/client/client/OAITestApi.cpp
- A tests/auto/mediatype/client/client/OAITestApi.h
- A tests/auto/mediatype/client/client/OAIUser.cpp
- A tests/auto/mediatype/client/client/OAIUser.h
- A tests/auto/mediatype/client/client/README.md
- A tests/auto/mediatype/client/client/client.pri
- A tests/auto/mediatype/client/client/doc/Doxyfile.in
- A tests/auto/mediatype/client/mediatype/CMakeLists.txt
- A tests/auto/mediatype/client/mediatype/MediaType.cpp
- A tests/auto/mediatype/client/mediatype/file-for-uploading.txt
- A tests/auto/mediatype/client/mediatype/usericon.png
- A tests/auto/mediatype/server/api/openapi.yaml
- A tests/auto/mediatype/server/build-and-run.bash
- A tests/auto/mediatype/server/go.mod
- A tests/auto/mediatype/server/go.sum
- A tests/auto/mediatype/server/go/api_test_.go
- A tests/auto/mediatype/server/go/model_post_application_json_several_objects_request.go
- A tests/auto/mediatype/server/go/model_user.go
- A tests/auto/mediatype/server/go/routers.go
- A tests/auto/mediatype/server/main.go
- M tests/auto/openapi2.0/client/client/OAIFakeApi.cpp
- M tests/auto/openapi2.0/client/client/OAIFakeApi.h
- M tests/auto/operation-parameters/client/client/OAITestApi.cpp
- M tests/auto/operation-parameters/client/client/OAITestApi.h
- 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/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
- A yaml_files/mediatype.yaml