* @brief Builds an `array`-typed property with a full items sub-schema. */
| 66 | * @brief Builds an `array`-typed property with a full items sub-schema. |
| 67 | */ |
| 68 | static QJsonObject makeArrayProperty(const QString& description, const QJsonObject& items) |
| 69 | { |
| 70 | QJsonObject prop; |
| 71 | prop[QStringLiteral("type")] = QStringLiteral("array"); |
| 72 | prop[QStringLiteral("description")] = description; |
| 73 | prop[QStringLiteral("items")] = items; |
| 74 | return prop; |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * @brief Wraps a property map in a JSON Schema `object` envelope with optional required keys. |