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

Function collectValidations

grpc/codegen/service_data.go:838–840  ·  view source on GitHub ↗

collectValidations recurses through the attribute and collects the validation functions. req if true indicates that the validations are generated for validating request messages.

(att *expr.AttributeExpr, attName string, req bool, sd *ServiceData)

Source from the content-addressed store, hash-verified

836// req if true indicates that the validations are generated for validating
837// request messages.
838func collectValidations(att *expr.AttributeExpr, attName string, req bool, sd *ServiceData) {
839 collectValidationsR(att, attName, req, sd, make(map[string]struct{}))
840}
841
842// collectValidationsR recurses through the attribute and collects validation
843// functions with cycle detection using a seen set of user type IDs.

Callers 1

addValidationFunction · 0.85

Calls 1

collectValidationsRFunction · 0.85

Tested by

no test coverage detected