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

Function hasEnumValidation

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

Source from the content-addressed store, hash-verified

131}
132
133func hasEnumValidation(a *AttributeExpr) bool {
134 return a.Validation != nil && len(a.Validation.Values) > 0
135}
136
137func hasFormatValidation(a *AttributeExpr) bool {
138 return a.Validation != nil && a.Validation.Format != ""

Callers 2

ExampleMethod · 0.85
byEnumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected