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

Function makeArrayProperty

app/src/AI/ToolDispatcher.cpp:68–75  ·  view source on GitHub ↗

* @brief Builds an `array`-typed property with a full items sub-schema. */

Source from the content-addressed store, hash-verified

66 * @brief Builds an `array`-typed property with a full items sub-schema.
67 */
68static QJsonObject makeArrayProperty(const QString& description, const QJsonObject& items)
69{
70 QJsonObject prop;
71 prop[QStringLiteral("type")] = QStringLiteral("array");
72 prop[QStringLiteral("description")] = description;
73 prop[QStringLiteral("items")] = items;
74 return prop;
75}
76
77/**
78 * @brief Wraps a property map in a JSON Schema `object` envelope with optional required keys.

Callers 1

bulkInputSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected