Validate ensures that the method payload contains attributes required by the scheme.
()
| 198 | // Validate ensures that the method payload contains attributes required |
| 199 | // by the scheme. |
| 200 | func (s *SchemeExpr) Validate() *eval.ValidationErrors { |
| 201 | verr := new(eval.ValidationErrors) |
| 202 | for _, f := range s.Flows { |
| 203 | if err := f.Validate(); err != nil { |
| 204 | verr.Merge(err) |
| 205 | } |
| 206 | } |
| 207 | return verr |
| 208 | } |
| 209 | |
| 210 | // EvalName returns the name of the expression used in error messages. |
| 211 | func (f *FlowExpr) EvalName() string { |