* @brief Build the empty JSON-Schema used by parameterless commands. */
| 49 | * @brief Build the empty JSON-Schema used by parameterless commands. |
| 50 | */ |
| 51 | [[nodiscard]] inline QJsonObject emptySchema() |
| 52 | { |
| 53 | QJsonObject schema; |
| 54 | schema.insert(QStringLiteral("type"), QStringLiteral("object")); |
| 55 | schema.insert(QStringLiteral("properties"), QJsonObject()); |
| 56 | return schema; |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * @brief Build a SchemaProp constrained to a fixed enum, with optional default. |
no test coverage detected