(all bool)
| 51 | } |
| 52 | |
| 53 | func (m *GetUserRequest) validate(all bool) error { |
| 54 | if m == nil { |
| 55 | return nil |
| 56 | } |
| 57 | |
| 58 | var errors []error |
| 59 | |
| 60 | // no validation rules for Id |
| 61 | |
| 62 | if len(errors) > 0 { |
| 63 | return GetUserRequestMultiError(errors) |
| 64 | } |
| 65 | |
| 66 | return nil |
| 67 | } |
| 68 | |
| 69 | // GetUserRequestMultiError is an error wrapping multiple validation errors |
| 70 | // returned by GetUserRequest.ValidateAll() if the designated constraints |
no test coverage detected