* @brief Converts a string list into a JSON array for use as a schema `enum`. */
| 92 | * @brief Converts a string list into a JSON array for use as a schema `enum`. |
| 93 | */ |
| 94 | static QJsonArray stringEnum(const QStringList& values) |
| 95 | { |
| 96 | QJsonArray arr; |
| 97 | for (const auto& value : values) |
| 98 | arr.append(value); |
| 99 | |
| 100 | return arr; |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * @brief Builds a JSON Schema string property restricted to the given enum values. |
no test coverage detected