You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errs=append(errs, validation.NewMapKeyError(fmt.Sprintf("input key must be a valid key [%s]: %s", componentNameRegex.String(), key), c.GetCore(), c.GetCore().Inputs, key))
48
+
errs=append(errs, validation.NewMapKeyError(fmt.Sprintf("input key must be a valid key [%s]: %s", componentNameRegex.String(), key), core, core.Inputs, key))
errs=append(errs, validation.NewMapKeyError(fmt.Sprintf("parameter key must be a valid key [%s]: %s", componentNameRegex.String(), key), c.GetCore(), c.GetCore().Parameters, key))
60
+
errs=append(errs, validation.NewMapKeyError(fmt.Sprintf("parameter key must be a valid key [%s]: %s", componentNameRegex.String(), key), core, core.Parameters, key))
errs=append(errs, validation.NewMapKeyError(fmt.Sprintf("successAction key must be a valid key [%s]: %s", componentNameRegex.String(), key), c.GetCore(), c.GetCore().SuccessActions, key))
70
+
errs=append(errs, validation.NewMapKeyError(fmt.Sprintf("successAction key must be a valid key [%s]: %s", componentNameRegex.String(), key), core, core.SuccessActions, key))
errs=append(errs, validation.NewMapKeyError(fmt.Sprintf("failureAction key must be a valid key [%s]: %s", componentNameRegex.String(), key), c.GetCore(), c.GetCore().FailureActions, key))
80
+
errs=append(errs, validation.NewMapKeyError(fmt.Sprintf("failureAction key must be a valid key [%s]: %s", componentNameRegex.String(), key), core, core.FailureActions, key))
errs=append(errs, validation.NewValueError(fmt.Sprintf("version must be one of [%s]", strings.Join([]string{string(CriterionTypeVersionDraftGoesnerDispatchJsonPath00)}, ", ")), c.GetCore(), c.GetCore().Type))
62
+
errs=append(errs, validation.NewValueError(fmt.Sprintf("version must be one of [%s]", strings.Join([]string{string(CriterionTypeVersionDraftGoesnerDispatchJsonPath00)}, ", ")), core, core.Version))
62
63
}
63
64
caseCriterionTypeXPath:
64
65
switchc.Version {
65
66
caseCriterionTypeVersionXPath30:
66
67
caseCriterionTypeVersionXPath20:
67
68
caseCriterionTypeVersionXPath10:
68
69
default:
69
-
errs=append(errs, validation.NewValueError(fmt.Sprintf("version must be one of [%s]", strings.Join([]string{string(CriterionTypeVersionXPath30), string(CriterionTypeVersionXPath20), string(CriterionTypeVersionXPath10)}, ", ")), c.GetCore(), c.GetCore().Type))
70
+
errs=append(errs, validation.NewValueError(fmt.Sprintf("version must be one of [%s]", strings.Join([]string{string(CriterionTypeVersionXPath30), string(CriterionTypeVersionXPath20), string(CriterionTypeVersionXPath10)}, ", ")), core, core.Version))
70
71
}
71
72
default:
72
-
errs=append(errs, validation.NewValueError(fmt.Sprintf("type must be one of [%s]", strings.Join([]string{string(CriterionTypeJsonPath), string(CriterionTypeXPath)}, ", ")), c.GetCore(), c.GetCore().Type))
73
+
errs=append(errs, validation.NewValueError(fmt.Sprintf("type must be one of [%s]", strings.Join([]string{string(CriterionTypeJsonPath), string(CriterionTypeXPath)}, ", ")), core, core.Type))
errs=append(errs, validation.NewValueError(fmt.Sprintf("type must be one of [%s]", strings.Join([]string{string(CriterionTypeSimple), string(CriterionTypeRegex), string(CriterionTypeJsonPath), string(CriterionTypeXPath)}, ", ")), c.GetCore(), c.GetCore().Type))
203
+
errs=append(errs, validation.NewValueError(fmt.Sprintf("type must be one of [%s]", strings.Join([]string{string(CriterionTypeSimple), string(CriterionTypeRegex), string(CriterionTypeJsonPath), string(CriterionTypeXPath)}, ", ")), core, core.Type))
errs=append(errs, validation.NewValueError("retryAfter must be greater than or equal to 0", f.GetCore(), f.GetCore().RetryAfter))
124
+
errs=append(errs, validation.NewValueError("retryAfter must be greater than or equal to 0", core, core.RetryAfter))
124
125
}
125
126
}
126
127
iff.RetryLimit!=nil {
127
128
if*f.RetryLimit<0 {
128
-
errs=append(errs, validation.NewValueError("retryLimit must be greater than or equal to 0", f.GetCore(), f.GetCore().RetryLimit))
129
+
errs=append(errs, validation.NewValueError("retryLimit must be greater than or equal to 0", core, core.RetryLimit))
129
130
}
130
131
}
131
132
default:
132
-
errs=append(errs, validation.NewValueError(fmt.Sprintf("type must be one of [%s]", strings.Join([]string{string(FailureActionTypeEnd), string(FailureActionTypeGoto), string(FailureActionTypeRetry)}, ", ")), f.GetCore(), f.GetCore().Type))
133
+
errs=append(errs, validation.NewValueError(fmt.Sprintf("type must be one of [%s]", strings.Join([]string{string(FailureActionTypeEnd), string(FailureActionTypeGoto), string(FailureActionTypeRetry)}, ", ")), core, core.Type))
errs=append(errs, validation.NewValueError("in is required within a step when workflowId is not set", p.GetCore(), p.GetCore().In))
74
+
errs=append(errs, validation.NewValueError("in is required within a step when workflowId is not set", core, core.In))
74
75
}
75
76
}
76
77
77
78
ifin!="" {
78
-
errs=append(errs, validation.NewValueError(fmt.Sprintf("in must be one of [%s] but was %s", strings.Join([]string{string(InPath), string(InQuery), string(InHeader), string(InCookie)}, ", "), in), p.GetCore(), p.GetCore().In))
79
+
errs=append(errs, validation.NewValueError(fmt.Sprintf("in must be one of [%s] but was %s", strings.Join([]string{string(InPath), string(InQuery), string(InHeader), string(InCookie)}, ", "), in), core, core.In))
79
80
}
80
81
}
81
82
82
-
ifp.GetCore().Value.Present&&p.Value==nil {
83
-
errs=append(errs, validation.NewValueError("value is required", p.GetCore(), p.GetCore().Value))
83
+
ifcore.Value.Present&&p.Value==nil {
84
+
errs=append(errs, validation.NewValueError("value is required", core, core.Value))
0 commit comments