MCPcopy Create free account
hub / github.com/goadesign/goa / Validate

Method Validate

expr/security.go:200–208  ·  view source on GitHub ↗

Validate ensures that the method payload contains attributes required by the scheme.

()

Source from the content-addressed store, hash-verified

198// Validate ensures that the method payload contains attributes required
199// by the scheme.
200func (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.
211func (f *FlowExpr) EvalName() string {

Callers 1

TestSchemeExprValidateFunction · 0.95

Calls 2

ValidateMethod · 0.65
MergeMethod · 0.45

Tested by 1

TestSchemeExprValidateFunction · 0.76