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

Function hasFormatValidation

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

Source from the content-addressed store, hash-verified

135}
136
137func hasFormatValidation(a *AttributeExpr) bool {
138 return a.Validation != nil && a.Validation.Format != ""
139}
140
141func hasPatternValidation(a *AttributeExpr) bool {
142 return a.Validation != nil && a.Validation.Pattern != ""

Callers 2

ExampleMethod · 0.85
byFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected