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

Function stringProp

app/src/API/Handlers/NotificationsHandler.cpp:31–37  ·  view source on GitHub ↗

* @brief Reusable "accepts channel/title/subtitle strings" schema chunk. */

Source from the content-addressed store, hash-verified

29 * @brief Reusable "accepts channel/title/subtitle strings" schema chunk.
30 */
31[[nodiscard]] static QJsonObject stringProp(const QString& description)
32{
33 QJsonObject p;
34 p[QStringLiteral("type")] = QStringLiteral("string");
35 p[QStringLiteral("description")] = description;
36 return p;
37}
38
39/**
40 * @brief Builds a schema object from a properties map and required-keys list.

Callers 1

registerCommandsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected