New ๐ŸŒŠ wave for @helm

Commit f26ef10b

f26ef10b6fe0Merged

Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 2 files ยท +1 added ยท ~1 modified

Description

fix: mv GenSchema to schema.go

Signed-off-by: Dmitriy Zhilyaev [email protected]

Details

Commit
f26ef10b6fe0
Parent
126900026c87

pkg/plan/new.gomodifiedView file

@@ -15,7 +15,6 @@
1515 "github.com/helmwave/helmwave/pkg/release/uniqname"
1616 "github.com/helmwave/helmwave/pkg/repo"
1717 "github.com/helmwave/helmwave/pkg/version"
18- "github.com/invopop/jsonschema"
1918 log "github.com/sirupsen/logrus"
2019 "gopkg.in/yaml.v3"
2120 )
@@ -92,18 +91,6 @@
9291 Registries registry.Configs `yaml:"registries" json:"registries" jsonschema:"title=registries list,description=helm OCI registries"`
9392 Releases release.Configs `yaml:"releases" json:"releases" jsonschema:"title=helm releases,description=what you wanna deploy"`
9493 Lifecycle hooks.Lifecycle `yaml:"lifecycle" json:"lifecycle" jsonschema:"title=lifecycle,description=helmwave lifecycle hooks"`
95-}
96-
97-func GenSchema() *jsonschema.Schema {
98- r := &jsonschema.Reflector{
99- DoNotReference: true,
100- RequiredFromJSONSchemaTags: true,
101- }
102-
103- schema := r.Reflect(&planBody{})
104- schema.AdditionalProperties = jsonschema.TrueSchema // to allow anchors at the top level
105-
106- return schema
10794 }
10895
10996 // NewBody parses plan from file.