func (o *DefaultEnforcerVersion) Validate() error {

	errors := elemental.Errors{}
	requiredErrors := elemental.Errors{}

	if err := ValidateSemVer("defaultVersion", o.DefaultVersion); err != nil {
		errors = errors.Append(err)
	}

	if len(requiredErrors) > 0 {
		return requiredErrors
	}

	if len(errors) > 0 {
		return errors
	}

	return nil
}
// Validate valides the current information stored into the structure.
Validate valides the current information stored into the structure.
// Validate valides the current information stored into the structure .
func (o *DefaultEnforcerVersion) Validate() error {
	errors := elemental.Errors{}
	requiredErrors := elemental.Errors{}
	if err := ValidateSemVer("defaultVersion", o.DefaultVersion); err != nil {
		errors = errors.Append(err)
	}
	if len(requiredErrors) > 0 {
		return requiredErrors
	}
	if len(errors) > 0 {
		return errors
	}
	return nil
}
func ( o * DefaultEnforcerVersion ) Validate ( ) error { errors := elemental . Errors { } requiredErrors := elemental . Errors { } if err := ValidateSemVer ( " " , o . DefaultVersion ) ; err != nil { errors = errors . Append ( err ) } if len ( requiredErrors ) > 0 { return requiredErrors } if len ( errors ) > 0 { return errors } return nil }
Validate valides the current information stored into the structure.
Validate valides the current information stored into the structure .