func (a AuditProfileRuleList) Validate() error {

	errs := []error{}

	for _, r := range a {
		if r == nil {
			errs = append(errs, elemental.NewError("Validation Error", "One entry is nil", "gaia", http.StatusUnprocessableEntity))
			continue
		}

		if err := r.Validate(); err != nil {
			errs = append(errs, err)
		}
	}

	if len(errs) > 0 {
		return elemental.NewErrors(errs...)
	}

	return nil
}
// Validate will validate all rules in the list
Validate will validate all rules in the list
// Validate will validate all rules in the list
func (a AuditProfileRuleList) Validate() error {
	errs := []error{}
	for _, r := range a {
		if r == nil {
			errs = append(errs, elemental.NewError("Validation Error", "One entry is nil", "gaia", http.StatusUnprocessableEntity))
			continue
		}
		if err := r.Validate(); err != nil {
			errs = append(errs, err)
		}
	}
	if len(errs) > 0 {
		return elemental.NewErrors(errs...)
	}
	return nil
}
func ( a AuditProfileRuleList ) Validate ( ) error { errs := [ ] error { } for _ , r := range a { if r == nil { errs = append ( errs , elemental . NewError ( " " , " " , " " , http . StatusUnprocessableEntity ) ) continue } if err := r . Validate ( ) ; err != nil { errs = append ( errs , err ) } } if len ( errs ) > 0 { return elemental . NewErrors ( errs ... ) } return nil }
Validate will validate all rules in the list
Validate will validate all rules in the list