Add warning when style value is invalid for path params
Add warning during generation in CppQt6AbstractCodegen.java and in
the generated code in api-body.mustache.
Inform the user that the provided style value will be ignored, and the
default 'simple' style will be used instead.
Set style value to 'simple' in the java code in case of invalid style.
Add a new path operation with invalid style. Add test.
Task-number: QTBUG-137408
Change-Id: I885d4b0838631f60600d1334628068b7fb29321d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | 9bf84294d3c6878712ac306d4a1c3c248632c408 |
| parent | 9b55be384b3c9a6cc6d529f17501eb95970014fb |
| author | Rym Bouabid <rym.bouabid@qt.io> |
| committer | Rym Bouabid <rym.bouabid@qt.io> |
| commit time | Tue, 23 Sep 2025 13:08:59 +0200 |
- M src/main/java/org/qtproject/qt/codegen/CppQt6AbstractCodegen.java
- 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 yaml_files/operation-parameters.yaml