func (attr Attr) Checker() (schema.Checker, error) {
	checker := checkers[attr.Type]
	if checker == nil {
		return nil, fmt.Errorf("invalid type %q", attr.Type)
	}
	if len(attr.Values) == 0 {
		return checker, nil
	}
	return oneOfValues(checker, attr.Values)
}
// Checker returns a checker that can be used to coerce values into the
// type of the attribute. Specifically, string is always supported for
// any checker type.
Checker returns a checker that can be used to coerce values into the
type of the attribute. Specifically, string is always supported for
any checker type.
// Checker returns a checker that can be used to coerce values into the // type of the attribute . Specifically string is always supported for // any checker type .
func (attr Attr) Checker() (schema.Checker, error) {
	checker := checkers[attr.Type]
	if checker == nil {
		return nil, fmt.Errorf("invalid type %q", attr.Type)
	}
	if len(attr.Values) == 0 {
		return checker, nil
	}
	return oneOfValues(checker, attr.Values)
}
func ( attr Attr ) Checker ( ) ( schema . Checker , error ) { checker := checkers [ attr . Type ] if checker == nil { return nil , fmt . Errorf ( " " , attr . Type ) } if len ( attr . Values ) == 0 { return checker , nil } return oneOfValues ( checker , attr . Values ) }
Checker returns a checker that can be used to coerce values into the
type of the attribute.
Checker returns a checker that can be used to coerce values into the type of the attribute .