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

Function initExclusiveMaximumValidation

http/codegen/openapi/v2/builder.go:753–765  ·  view source on GitHub ↗
(def any, exclMax *float64)

Source from the content-addressed store, hash-verified

751}
752
753func initExclusiveMaximumValidation(def any, exclMax *float64) {
754 switch actual := def.(type) {
755 case *Parameter:
756 actual.Maximum = exclMax
757 actual.ExclusiveMaximum = true
758 case *Header:
759 actual.Maximum = exclMax
760 actual.ExclusiveMaximum = true
761 case *Items:
762 actual.Maximum = exclMax
763 actual.ExclusiveMaximum = true
764 }
765}
766
767func initMaximumValidation(def any, maximum *float64) {
768 switch actual := def.(type) {

Callers 1

initValidationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected