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

Function initExclusiveMinimumValidation

http/codegen/openapi/v2/builder.go:725–737  ·  view source on GitHub ↗
(def any, exclMin *float64)

Source from the content-addressed store, hash-verified

723}
724
725func initExclusiveMinimumValidation(def any, exclMin *float64) {
726 switch actual := def.(type) {
727 case *Parameter:
728 actual.Minimum = exclMin
729 actual.ExclusiveMinimum = true
730 case *Header:
731 actual.Minimum = exclMin
732 actual.ExclusiveMinimum = true
733 case *Items:
734 actual.Minimum = exclMin
735 actual.ExclusiveMinimum = true
736 }
737}
738
739func initMinimumValidation(def any, minimum *float64) {
740 switch actual := def.(type) {

Callers 1

initValidationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected