func (m State) Validate(formats strfmt.Registry) error {
	var res []error

	// value enum
	if err := m.validateStateEnum("", "body", m); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m State) Validate(formats strfmt.Registry) error {
	var res []error

	
	if err := m.validateStateEnum("", "body", m); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func ( m State ) Validate ( formats strfmt . Registry ) error { var res [ ] error // value enum if err := m . validateStateEnum ( " " , " " , m ) ; err != nil { return err } if len ( res ) > 0 { return errors . CompositeValidationError ( res ... ) } return nil }
// Validate validates this state
Validate validates this state