From 7d92fc7e5dd7fb33867bcdfbfe71297449b1a165 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Fri, 28 Jun 2024 00:38:51 +0200 Subject: [PATCH] better comment --- bundle/schema/schema.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundle/schema/schema.go b/bundle/schema/schema.go index 47b84aabd..84c3f9923 100644 --- a/bundle/schema/schema.go +++ b/bundle/schema/schema.go @@ -169,6 +169,10 @@ func toSchema(golangType reflect.Type, docs *Docs, tracker *tracker) (*jsonschem jsonSchema := &jsonschema.Schema{Type: rootJavascriptType} // Variables can be set as the value at any node in the configuration tree. + + // At every node in the configuration tree we allow string values, provided + // they are a variable reference. Any node (scalar, object or array) can be + // set as a variable reference. if rootJavascriptType != jsonschema.StringType { jsonSchema = &jsonschema.Schema{ AnyOf: []*jsonschema.Schema{