Add OPENAPI_GENERATOR_VERSION_LE and OPENAPI_GENERATOR_VERSION_GE macros


- It can be helpful to add OPENAPI_GENERATOR_VERSION_LE
and OPENAPI_GENERATOR_VERSION_GE
macros for switching between different upstream generator versions.

- Recently, we noticed that depending on the upstream generator
version some data types can be generated differently.
For example, 'closed' inline object is 'QMap<QString, QJsonValue>'
for the generators v7.<12-16>.0, but 'QOAIObject' since v7.17.0.

- Update the MediaType::testEmptyJsonObjects() to show how we can
use it.

Amends: fdabaf9591d17ea773e3c2b481b443e90135254e

Pick-to: 6.11
Change-Id: If38ba28152cb26e67140d51b0179fb9600065e85
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit8bdadf96c93712d51b2fc64fc1e89f7cb07cabdd
parentd956a320ba438454e9252adbeae1072f23a7e601
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeMon, 19 Jan 2026 13:34:06 +0100