MCPcopy Create free account
hub / github.com/Permify/permify / ValidateAll

Method ValidateAll

pkg/pb/base/v1/base.pb.validate.go:1382–1384  ·  view source on GitHub ↗

ValidateAll checks the field values on RuleDefinition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RuleDefinitionMultiError, or nil if none found.

()

Source from the content-addressed store, hash-verified

1380// result is a list of violation errors wrapped in RuleDefinitionMultiError,
1381// or nil if none found.
1382func (m *RuleDefinition) ValidateAll() error {
1383 return m.validate(true)
1384}
1385
1386func (m *RuleDefinition) validate(all bool) error {
1387 if m == nil {

Callers

nothing calls this directly

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected