Skip to content

Commit

Permalink
fix: jsonschema
Browse files Browse the repository at this point in the history
hopefully fixes #3238

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jul 26, 2022
1 parent 6fdb41f commit 7f2b50b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/config/config.go
Expand Up @@ -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{
{
Expand Down

0 comments on commit 7f2b50b

Please sign in to comment.