Skip to content

Commit 2e2eb0e

Browse files
committed
add global value to json schema
Signed-off-by: Tim Ramlot <[email protected]>
1 parent f1c399c commit 2e2eb0e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

schema/render.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ func Render(document *parser.Document) (string, error) {
154154
definitions[prefixName(level.Path.String())] = newSchema
155155
})
156156

157+
definitions["global"] = spec.Schema{
158+
SchemaProps: spec.SchemaProps{
159+
Description: "Global values shared across all (sub)charts",
160+
},
161+
}
162+
157163
type JsonSchema struct {
158164
Schema string `json:"$schema,omitempty"`
159165
Ref string `json:"$ref,omitempty"`

0 commit comments

Comments
 (0)