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

Method validate

api/interface/web3/demo.pb.validate.go:53–67  ·  view source on GitHub ↗
(all bool)

Source from the content-addressed store, hash-verified

51}
52
53func (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

Callers 2

ValidateMethod · 0.95
ValidateAllMethod · 0.95

Calls 1

GetUserRequestMultiErrorTypeAlias · 0.70

Tested by

no test coverage detected