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

Function hasPatternValidation

expr/example.go:141–143  ·  view source on GitHub ↗
(a *AttributeExpr)

Source from the content-addressed store, hash-verified

139}
140
141func hasPatternValidation(a *AttributeExpr) bool {
142 return a.Validation != nil && a.Validation.Pattern != ""
143}
144
145func hasMinMaxValidation(a *AttributeExpr) bool {
146 if a.Validation == nil {

Callers 3

ExampleMethod · 0.85
byPatternFunction · 0.85
checkPatternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected