func (c CapabilitiesTypeMap) Validate() error {
	var errs []error

	for k, v := range c {
		if err := k.Validate(); err != nil {
			errs = append(errs, err)
		}

		if v < CapabilitiesActionTypeAdd || v > CapabilitiesActionTypeDrop {
			errs = append(errs, elemental.NewError("Validation Error", "Unknown capabilities action type", "elemental", http.StatusUnprocessableEntity))
		}
	}

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

	return nil
}
// Validate validates a capabilities type list.
Validate validates a capabilities type list.
// Validate validates a capabilities type list .
func (c CapabilitiesTypeMap) Validate() error {
	var errs []error
	for k, v := range c {
		if err := k.Validate(); err != nil {
			errs = append(errs, err)
		}
		if v < CapabilitiesActionTypeAdd || v > CapabilitiesActionTypeDrop {
			errs = append(errs, elemental.NewError("Validation Error", "Unknown capabilities action type", "elemental", http.StatusUnprocessableEntity))
		}
	}
	if len(errs) > 1 {
		return elemental.NewErrors(errs...)
	}
	return nil
}
func ( c CapabilitiesTypeMap ) Validate ( ) error { var errs [ ] error for k , v := range c { if err := k . Validate ( ) ; err != nil { errs = append ( errs , err ) } if v < CapabilitiesActionTypeAdd || v > CapabilitiesActionTypeDrop { errs = append ( errs , elemental . NewError ( " " , " " , " " , http . StatusUnprocessableEntity ) ) } } if len ( errs ) > 1 { return elemental . NewErrors ( errs ... ) } return nil }
Validate validates a capabilities type list.
Validate validates a capabilities type list .