MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / arrayProp

Function arrayProp

app/src/API/SchemaBuilder.h:79–89  ·  view source on GitHub ↗

* @brief Build a SchemaProp for an array with a full items sub-schema. */

Source from the content-addressed store, hash-verified

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,

Calls

no outgoing calls

Tested by

no test coverage detected