Extend operation parameters spec with new map cases
Add QMap path and query parameters.
Add tests.
There are two types of maps:
- string to simple type mapping: map with simple (non-object) values.
- string to model mapping: map with object values.
https://spec.openapis.org/oas/v3.1.1.html#model-with-map-dictionary-properties
Serialization of nested objects and arrays is only possible using
the content and not any style options.
Will be done here: QTBUG-137269.
Serialization of query map with deepObject style is incorrect.
Update serialization in mustache file to get the expected behavior.
Task-number: QTBUG-137315
Change-Id: I1edb5f5639f577dc1aa56adf177e300cbc31aa33
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | fd7ab19d43f3176459922b2fd7c0dce672f6d270 |
| parent | c00bbd90d3839eecf530a7383293bc9cb1a5baf1 |
| author | Rym Bouabid <rym.bouabid@qt.io> |
| committer | Rym Bouabid <rym.bouabid@qt.io> |
| commit time | Wed, 3 Sep 2025 12:59:45 +0200 |
- M src/main/resources/cpp-qt6-client/api-body.mustache
- M tests/auto/operation-parameters/client/OperationParameters/OperationParameters.cpp
- M tests/auto/operation-parameters/client/client/QtOAITestApi.cpp
- M tests/auto/operation-parameters/client/client/QtOAITestApi.h
- M tests/auto/operation-parameters/client/client/README.md
- M tests/auto/operation-parameters/server/go/api_test_.go
- M tests/auto/operation-parameters/server/go/routers.go
- M tests/auto/petstore/client/client/QtOAIUserApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIUserApi.cpp
- M yaml_files/operation-parameters.yaml