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

Function initPatternValidation

http/codegen/openapi/v2/builder.go:714–723  ·  view source on GitHub ↗
(def any, pattern string)

Source from the content-addressed store, hash-verified

712}
713
714func initPatternValidation(def any, pattern string) {
715 switch actual := def.(type) {
716 case *Parameter:
717 actual.Pattern = pattern
718 case *Header:
719 actual.Pattern = pattern
720 case *Items:
721 actual.Pattern = pattern
722 }
723}
724
725func initExclusiveMinimumValidation(def any, exclMin *float64) {
726 switch actual := def.(type) {

Callers 1

initValidationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected