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:
parent
6fdb41f4af
commit
7f2b50b94d
@ -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{
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user