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

Function initFormatValidation

http/codegen/openapi/v2/builder.go:703–712  ·  view source on GitHub ↗
(def any, format string)

Source from the content-addressed store, hash-verified

701}
702
703func initFormatValidation(def any, format string) {
704 switch actual := def.(type) {
705 case *Parameter:
706 actual.Format = format
707 case *Header:
708 actual.Format = format
709 case *Items:
710 actual.Format = format
711 }
712}
713
714func initPatternValidation(def any, pattern string) {
715 switch actual := def.(type) {

Callers 1

initValidationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected