func (sl *StringList) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var single string
	singleCandidate := UnmarshalCandidate{
		Unmarshal: func() error { return unmarshal(&single) },
		Assign:    func() { *sl = []string{single} },
	}

	var list []string
	listCandidate := UnmarshalCandidate{
		Unmarshal: func() error { return unmarshal(&list) },
		Assign:    func() { *sl = list },
	}

	return UnmarshalOneOf(singleCandidate, listCandidate)
}
// UnmarshalYAML unmarshals a string or list of strings always into a list.
UnmarshalYAML unmarshals a string or list of strings always into a list.
// UnmarshalYAML unmarshals a string or list of strings always into a list .
func (sl *StringList) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var single string
	singleCandidate := UnmarshalCandidate{
		Unmarshal: func() error { return unmarshal(&single) },
		Assign:    func() { *sl = []string{single} },
	}
	var list []string
	listCandidate := UnmarshalCandidate{
		Unmarshal: func() error { return unmarshal(&list) },
		Assign:    func() { *sl = list },
	}
	return UnmarshalOneOf(singleCandidate, listCandidate)
}
func ( sl * StringList ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { var single string singleCandidate := UnmarshalCandidate { Unmarshal : func ( ) error { return unmarshal ( & single ) } , Assign : func ( ) { * sl = [ ] string { single } } , } var list [ ] string listCandidate := UnmarshalCandidate { Unmarshal : func ( ) error { return unmarshal ( & list ) } , Assign : func ( ) { * sl = list } , } return UnmarshalOneOf ( singleCandidate , listCandidate ) }
UnmarshalYAML unmarshals a string or list of strings always into a list.
UnmarshalYAML unmarshals a string or list of strings always into a list .