diff --git a/pkg/config/config.go b/pkg/config/config.go index f138b266209..85125a8f223 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -460,14 +460,10 @@ 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(&t{}) - // jsonschema would just refer to FileInfo in the definition. It doesn't get included there, as we override the - // generated schema with JSONSchema here. So we need to include it directly in the schema of File. - schema.Properties.Set("info", reflector.Reflect(&FileInfo{}).Type) + schema := reflector.Reflect(&File{}) return &jsonschema.Schema{ OneOf: []*jsonschema.Schema{ {