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

Function emptySchema

app/src/API/SchemaBuilder.h:51–57  ·  view source on GitHub ↗

* @brief Build the empty JSON-Schema used by parameterless commands. */

Source from the content-addressed store, hash-verified

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.

Calls 1

QJsonObjectClass · 0.85

Tested by

no test coverage detected