MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GenerateConfigSchema

Function GenerateConfigSchema

tsunami/engine/schema.go:295–298  ·  view source on GitHub ↗

GenerateConfigSchema generates a JSON schema for all config atoms

(root *RootElem)

Source from the content-addressed store, hash-verified

293
294// GenerateConfigSchema generates a JSON schema for all config atoms
295func GenerateConfigSchema(root *RootElem) map[string]any {
296 configAtoms := root.getAtomsByPrefix("$config.")
297 return generateSchemaFromAtoms(configAtoms, "Application Configuration", "Application configuration settings")
298}
299
300// GenerateDataSchema generates a JSON schema for all data atoms
301func GenerateDataSchema(root *RootElem) map[string]any {

Callers 2

handleSchemasMethod · 0.85
GetAppManifestMethod · 0.85

Calls 2

generateSchemaFromAtomsFunction · 0.85
getAtomsByPrefixMethod · 0.80

Tested by

no test coverage detected