(v *Int32PtrValidation)
| 169 | } |
| 170 | |
| 171 | func ValidateInt32PtrMissing(v *Int32PtrValidation) (*int32, error) { |
| 172 | if v.Required { |
| 173 | return nil, ErrorMustBeDefined(v.AllowedValues) |
| 174 | } |
| 175 | return validateInt32Ptr(v.Default, v) |
| 176 | } |
| 177 | |
| 178 | func ValidateInt32PtrProvided(val *int32, v *Int32PtrValidation) (*int32, error) { |
| 179 | if v.CantBeSpecifiedErrStr != nil { |
no test coverage detected