Function
initExclusiveMaximumValidation
(def any, exclMax *float64)
Source from the content-addressed store, hash-verified
| 751 | } |
| 752 | |
| 753 | func 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 | |
| 767 | func initMaximumValidation(def any, maximum *float64) { |
| 768 | switch actual := def.(type) { |
Tested by
no test coverage detected