type ActionToBeSetup struct {
// action definition
- ActionDefinition *ActionDefinition `json:"ActionDefinition,omitempty"`
+ ActionDefinition ActionDefinition `json:"ActionDefinition,omitempty"`
// action ID
// Required: true
return nil
}
- if m.ActionDefinition != nil {
- if err := m.ActionDefinition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ActionDefinition")
- }
- return err
+ if err := m.ActionDefinition.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("ActionDefinition")
}
+ return err
}
return nil