* @brief Build a SchemaProp for an array with a full items sub-schema. */
| 77 | * @brief Build a SchemaProp for an array with a full items sub-schema. |
| 78 | */ |
| 79 | [[nodiscard]] inline SchemaProp arrayProp(QString name, |
| 80 | QString description, |
| 81 | QJsonObject items_schema) |
| 82 | { |
| 83 | SchemaProp p; |
| 84 | p.name = std::move(name); |
| 85 | p.type = QStringLiteral("array"); |
| 86 | p.description = std::move(description); |
| 87 | p.itemsSchema = std::move(items_schema); |
| 88 | return p; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * @brief Build a SchemaProp for an array of a single primitive type (integer, number, string, |
no outgoing calls
no test coverage detected