Code generation error with openapi: 3.1.0


- For openapi3.1.x, generator can identify the object as a composition
of a free-form and a map. The problem appeared, when the free-form
object m_{{name}} was generated as a QMap<QString, QString>, since
QMap doesn't have isValid() or isSet() methods and should be handled
differently.
This case is now handled correctly by the generator.
- An example that generates the QMap<QString, QString> type has been
added to the basic-schemas.yaml auto test. The expected result of test
is compilation succeed.

Fixes: QTBUG-147745
Pick-to: 6.12 6.11
Change-Id: Ib69e008f9b7c84b57a1f16506f15602f275908ff
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commitb09dd42d800c77fe77e5ccac7f4a21feaef70421
parentde9e36b1cc0a1a88307dc4d1d973fb8f5b2ca157
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeFri, 26 Jun 2026 15:48:24 +0000