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

Function initMaximumValidation

http/codegen/openapi/v2/builder.go:767–779  ·  view source on GitHub ↗
(def any, maximum *float64)

Source from the content-addressed store, hash-verified

765}
766
767func initMaximumValidation(def any, maximum *float64) {
768 switch actual := def.(type) {
769 case *Parameter:
770 actual.Maximum = maximum
771 actual.ExclusiveMaximum = false
772 case *Header:
773 actual.Maximum = maximum
774 actual.ExclusiveMaximum = false
775 case *Items:
776 actual.Maximum = maximum
777 actual.ExclusiveMaximum = false
778 }
779}
780
781func initMinLengthValidation(def any, isArray bool, minLength *int) {
782 switch actual := def.(type) {

Callers 1

initValidationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected