MCPcopy Create free account
hub / github.com/6boris/web3-template / validate

Method validate

api/service/demo/user.pb.validate.go:286–298  ·  view source on GitHub ↗
(all bool)

Source from the content-addressed store, hash-verified

284}
285
286func (m *UpdateUserRequest) validate(all bool) error {
287 if m == nil {
288 return nil
289 }
290
291 var errors []error
292
293 if len(errors) > 0 {
294 return UpdateUserRequestMultiError(errors)
295 }
296
297 return nil
298}
299
300// UpdateUserRequestMultiError is an error wrapping multiple validation errors
301// returned by UpdateUserRequest.ValidateAll() if the designated constraints

Callers 2

ValidateMethod · 0.95
ValidateAllMethod · 0.95

Calls 1

Tested by

no test coverage detected