* @brief Builds a JSON Schema string property restricted to the given enum values. */
| 104 | * @brief Builds a JSON Schema string property restricted to the given enum values. |
| 105 | */ |
| 106 | static QJsonObject stringEnumProperty(const QString& description, const QStringList& values) |
| 107 | { |
| 108 | auto prop = makeProperty(QStringLiteral("string"), description); |
| 109 | prop[QStringLiteral("enum")] = stringEnum(values); |
| 110 | return prop; |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * @brief Input schema for assistant.snapshot. |
no test coverage detected