Skip to content

Commit 347d151

Browse files
authored
Merge pull request #29 from inteon/add_global_to_json_schema
Add global value to JSON schema
2 parents f1c399c + 2e2eb0e commit 347d151

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)