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

Method Validate

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

Validate checks the field values on SchemaDefinition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

()

Source from the content-addressed store, hash-verified

914// in the proto definition for this message. If any rules are violated, the
915// first error encountered is returned, or nil if there are no violations.
916func (m *SchemaDefinition) Validate() error {
917 return m.validate(false)
918}
919
920// ValidateAll checks the field values on SchemaDefinition with the rules
921// defined in the proto definition for this message. If any rules are

Callers

nothing calls this directly

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected