* @brief Returns a string-typed property schema with description (and optional enum). */
| 2052 | * @brief Returns a string-typed property schema with description (and optional enum). |
| 2053 | */ |
| 2054 | static QJsonObject stringProp(const QString& description, const QJsonArray& enumValues = {}) |
| 2055 | { |
| 2056 | QJsonObject prop; |
| 2057 | prop[QStringLiteral("type")] = QStringLiteral("string"); |
| 2058 | prop[QStringLiteral("description")] = description; |
| 2059 | if (!enumValues.isEmpty()) |
| 2060 | prop[QStringLiteral("enum")] = enumValues; |
| 2061 | |
| 2062 | return prop; |
| 2063 | } |
| 2064 | |
| 2065 | /** |
| 2066 | * @brief Appends meta.listCategories, meta.snapshot, meta.listCommands tools. |
no test coverage detected