Add test to check enumUnknownDefaultCase behavior
With enumUnknownDefaultCase option enabled, enum values sent from the
server that are unknown to the client should be mapped to a special new
case: 'unknown_default_open_api'.
Currently the UNKNOWN_DEFAULT_OPEN_API enum case is added when
enumUnknownDefaultCase is enabled but unknown values sent by the server
keep falling to INVALID_VALUE_OPENAPI_GENERATED enum case regardless of
enumUnknownDefaultCase value.
This should be fixed in QTBUG-144951.
Task-number: QTBUG-143713
Pick-to: 6.11
Change-Id: I1398f2872b4a471238774b2ba2dfdff47619bb5c
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | 9032665ca4d532415c85fcae1ebb3e69b3ca0af9 |
| parent | e9b36da726927b2a4e28626f273f93f3aeab6f5a |
| author | Rym Bouabid <rym.bouabid@qt.io> |
| committer | Rym Bouabid <rym.bouabid@qt.io> |
| commit time | Wed, 25 Mar 2026 09:52:52 +0100 |
- M tests/auto/generator-additional-properties/client/generator_additionalproperties/CMakeLists.txt
- M tests/auto/generator-additional-properties/client/generator_additionalproperties/generator-additional-properties.yaml
- M tests/auto/generator-additional-properties/client/generator_additionalproperties/tst_generator_additionalproperties.cpp
- M tests/auto/generator-additional-properties/server/go/api_test_.go
- M tests/auto/generator-additional-properties/server/go/routers.go