(key string, iMap map[string]interface{}, v *Int32ListValidation)
| 51 | } |
| 52 | |
| 53 | func Int32ListFromInterfaceMap(key string, iMap map[string]interface{}, v *Int32ListValidation) ([]int32, error) { |
| 54 | inter, ok := ReadInterfaceMapValue(key, iMap) |
| 55 | if !ok { |
| 56 | val, err := ValidateInt32ListMissing(v) |
| 57 | if err != nil { |
| 58 | return nil, errors.Wrap(err, key) |
| 59 | } |
| 60 | return val, nil |
| 61 | } |
| 62 | val, err := Int32List(inter, v) |
| 63 | if err != nil { |
| 64 | return nil, errors.Wrap(err, key) |
| 65 | } |
| 66 | return val, nil |
| 67 | } |
| 68 | |
| 69 | func ValidateInt32ListMissing(v *Int32ListValidation) ([]int32, error) { |
| 70 | if v.Required { |
no test coverage detected