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

Function makeProperty

app/src/AI/ToolDispatcher.cpp:57–63  ·  view source on GitHub ↗

* @brief Builds a `{type, description}` JSON Schema property fragment. */

Source from the content-addressed store, hash-verified

55 * @brief Builds a `{type, description}` JSON Schema property fragment.
56 */
57static QJsonObject makeProperty(const QString& type, const QString& description)
58{
59 QJsonObject prop;
60 prop[QStringLiteral("type")] = type;
61 prop[QStringLiteral("description")] = description;
62 return prop;
63}
64
65/**
66 * @brief Builds an `array`-typed property with a full items sub-schema.

Callers 15

stringEnumPropertyFunction · 0.85
snapshotInputSchemaFunction · 0.85
datasetInputSchemaFunction · 0.85
workspaceInputSchemaFunction · 0.85
tileInputSchemaFunction · 0.85
planInputSchemaFunction · 0.85
scriptPropsBagFunction · 0.85
bulkInputSchemaFunction · 0.85
checkpointInputSchemaFunction · 0.85
restoreInputSchemaFunction · 0.85
fsListInputSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected