From 7f2b50b94d1c425bf41c83124ed4a4bdab1fd3a1 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Tue, 26 Jul 2022 09:20:32 -0300 Subject: [PATCH] fix: jsonschema hopefully fixes #3238 Signed-off-by: Carlos A Becker --- pkg/config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 85125a8f223..f609e3ac53c 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -460,10 +460,11 @@ func (f *File) UnmarshalYAML(unmarshal func(interface{}) error) error { } func (f File) JSONSchema() *jsonschema.Schema { + type t File reflector := jsonschema.Reflector{ ExpandedStruct: true, } - schema := reflector.Reflect(&File{}) + schema := reflector.Reflect(&t{}) return &jsonschema.Schema{ OneOf: []*jsonschema.Schema{ {