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

Method validate

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

Source from the content-addressed store, hash-verified

383}
384
385func (m *CreateUserReply) validate(all bool) error {
386 if m == nil {
387 return nil
388 }
389
390 var errors []error
391
392 // no validation rules for Id
393
394 if len(errors) > 0 {
395 return CreateUserReplyMultiError(errors)
396 }
397
398 return nil
399}
400
401// CreateUserReplyMultiError is an error wrapping multiple validation errors
402// returned by CreateUserReply.ValidateAll() if the designated constraints

Callers 2

ValidateMethod · 0.95
ValidateAllMethod · 0.95

Calls 1

CreateUserReplyMultiErrorTypeAlias · 0.70

Tested by

no test coverage detected