* @brief Input schema for assistant.project.bulkApply. */
| 300 | * @brief Input schema for assistant.project.bulkApply. |
| 301 | */ |
| 302 | static QJsonObject bulkInputSchema() |
| 303 | { |
| 304 | QJsonObject opItem; |
| 305 | opItem[QStringLiteral("type")] = QStringLiteral("object"); |
| 306 | QJsonObject opProps; |
| 307 | opProps[QStringLiteral("command")] = makeProperty( |
| 308 | QStringLiteral("string"), |
| 309 | QStringLiteral("Registered command name, e.g. 'project.dataset.update'. Not 'project.batch' " |
| 310 | "or 'assistant.project.bulkApply' -- nested batches are rejected.")); |
| 311 | opProps[QStringLiteral("params")] = makeProperty( |
| 312 | QStringLiteral("object"), |
| 313 | QStringLiteral("Arguments object for the command, exactly what you would pass at the top " |
| 314 | "level if calling it directly.")); |
| 315 | opItem[QStringLiteral("properties")] = opProps; |
| 316 | opItem[QStringLiteral("required")] = |
| 317 | QJsonArray{QStringLiteral("command"), QStringLiteral("params")}; |
| 318 | |
| 319 | QJsonObject props; |
| 320 | props[QStringLiteral("ops")] = |
| 321 | makeArrayProperty(QStringLiteral("project.batch ops: [{command:'project.dataset.update', " |
| 322 | "params:{...}}, ...]. Nested batches rejected."), |
| 323 | opItem); |
| 324 | props[QStringLiteral("stopOnError")] = |
| 325 | makeProperty(QStringLiteral("boolean"), QStringLiteral("Forwarded to project.batch.")); |
| 326 | return makeObjectSchema(props, QJsonArray{QStringLiteral("ops")}); |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * @brief Input schema for assistant.checkpoint. |
no test coverage detected