Force allowUnicodeIdentifiers value to false and add tests
Unicode identifiers are not fully supported in the Qt6 generator.
Investigation of where unicode identifiers can appear in an OpenAPI
spec revealed the following:
Not supported due to MOC limitations:
- Operation IDs
- Model property names
- Tag names
Not supported due to the openapi spec validator regex:
- Model/schema names
- Enum names
Always sanitized regardless of allowUnicodeIdentifiers:
- Enum values
Supported:
- Operation parameter names
- Server variable names (unicode characters are always preserved
in the generated url, not affected by allowUnicodeIdentifiers)
Since unicode identifiers are not fully supported, allowUnicodeIdentifiers
is now always forced to false regardless of user input, and a warning
is emitted if the user explicitly sets it to true.
The cli option was already removed in this change:
963f99e684a4291e6e41ed81016d199c45f463a2
Add an operation in the spec with a parameter name "pرicЄ" to check
if it will be sanitized when allowUnicodeIdentifiers is false.
Verify in tests that enum values are always sanitized and that server
urls are not sanitized.
Task-number: QTBUG-143713
Pick-to: 6.11
Change-Id: Iccfb363ae782280482598629b81e6417242c319e
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>