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>