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

Function initEnumValidation

http/codegen/openapi/v2/builder.go:692–701  ·  view source on GitHub ↗
(def any, values []any)

Source from the content-addressed store, hash-verified

690}
691
692func initEnumValidation(def any, values []any) {
693 switch actual := def.(type) {
694 case *Parameter:
695 actual.Enum = values
696 case *Header:
697 actual.Enum = values
698 case *Items:
699 actual.Enum = values
700 }
701}
702
703func initFormatValidation(def any, format string) {
704 switch actual := def.(type) {

Callers 1

initValidationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected