* @brief Reusable "accepts channel/title/subtitle strings" schema chunk. */
| 29 | * @brief Reusable "accepts channel/title/subtitle strings" schema chunk. |
| 30 | */ |
| 31 | [[nodiscard]] static QJsonObject stringProp(const QString& description) |
| 32 | { |
| 33 | QJsonObject p; |
| 34 | p[QStringLiteral("type")] = QStringLiteral("string"); |
| 35 | p[QStringLiteral("description")] = description; |
| 36 | return p; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * @brief Builds a schema object from a properties map and required-keys list. |