1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: jsonschema

hopefully fixes #3238

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2022-07-26 09:20:32 -03:00
parent 6fdb41f4af
commit 7f2b50b94d
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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{
{