Module validate

Module validate 

Source

Modules§

bytes_rules
Nested message and enum types in BytesRules.
double_rules
Nested message and enum types in DoubleRules.
duration_rules
Nested message and enum types in DurationRules.
field_path_element
Nested message and enum types in FieldPathElement.
field_rules
Nested message and enum types in FieldRules.
fixed32_rules
Nested message and enum types in Fixed32Rules.
fixed64_rules
Nested message and enum types in Fixed64Rules.
float_rules
Nested message and enum types in FloatRules.
int32_rules
Nested message and enum types in Int32Rules.
int64_rules
Nested message and enum types in Int64Rules.
s_fixed32_rules
Nested message and enum types in SFixed32Rules.
s_fixed64_rules
Nested message and enum types in SFixed64Rules.
s_int32_rules
Nested message and enum types in SInt32Rules.
s_int64_rules
Nested message and enum types in SInt64Rules.
string_rules
Nested message and enum types in StringRules.
timestamp_rules
Nested message and enum types in TimestampRules.
u_int32_rules
Nested message and enum types in UInt32Rules.
u_int64_rules
Nested message and enum types in UInt64Rules.

Structs§

AnyRules
AnyRules describe rules applied exclusively to the google.protobuf.Any well-known type.
BoolRules
BoolRules describes the rules applied to bool values. These rules may also be applied to the google.protobuf.BoolValue Well-Known-Type.
BytesRules
BytesRules describe the rules applied to bytes values. These rules may also be applied to the google.protobuf.BytesValue Well-Known-Type.
DoubleRules
DoubleRules describes the rules applied to double values. These rules may also be applied to the google.protobuf.DoubleValue Well-Known-Type.
DurationRules
DurationRules describe the rules applied exclusively to the google.protobuf.Duration well-known type.
EnumRules
EnumRules describe the rules applied to enum values.
FieldPath
FieldPath provides a path to a nested protobuf field.
FieldPathElement
FieldPathElement provides enough information to nest through a single protobuf field.
FieldRules
FieldRules encapsulates the rules for each type of field. Depending on the field, the correct set should be used to ensure proper validations.
Fixed32Rules
Fixed32Rules describes the rules applied to fixed32 values.
Fixed64Rules
Fixed64Rules describes the rules applied to fixed64 values.
FloatRules
FloatRules describes the rules applied to float values. These rules may also be applied to the google.protobuf.FloatValue Well-Known-Type.
Int32Rules
Int32Rules describes the rules applied to int32 values. These rules may also be applied to the google.protobuf.Int32Value Well-Known-Type.
Int64Rules
Int64Rules describes the rules applied to int64 values. These rules may also be applied to the google.protobuf.Int64Value Well-Known-Type.
MapRules
MapRules describe the rules applied to map values.
MessageRules
MessageRules represents validation rules that are applied to the entire message. It includes disabling options and a list of Rule messages representing Common Expression Language (CEL) validation rules.
OneofRules
The OneofRules message type enables you to manage rules for oneof fields in your protobuf messages.
PredefinedRules
PredefinedRules are custom rules that can be re-used with multiple fields.
RepeatedRules
RepeatedRules describe the rules applied to repeated values.
Rule
Rule represents a validation rule written in the Common Expression Language (CEL) syntax. Each Rule includes a unique identifier, an optional error message, and the CEL expression to evaluate. For more information on CEL, see our documentation.
SFixed32Rules
SFixed32Rules describes the rules applied to fixed32 values.
SFixed64Rules
SFixed64Rules describes the rules applied to fixed64 values.
SInt32Rules
SInt32Rules describes the rules applied to sint32 values.
SInt64Rules
SInt64Rules describes the rules applied to sint64 values.
StringRules
StringRules describes the rules applied to string values These rules may also be applied to the google.protobuf.StringValue Well-Known-Type.
TimestampRules
TimestampRules describe the rules applied exclusively to the google.protobuf.Timestamp well-known type.
UInt32Rules
UInt32Rules describes the rules applied to uint32 values. These rules may also be applied to the google.protobuf.UInt32Value Well-Known-Type.
UInt64Rules
UInt64Rules describes the rules applied to uint64 values. These rules may also be applied to the google.protobuf.UInt64Value Well-Known-Type.
Violation
Violation represents a single instance where a validation rule, expressed as a Rule, was not met. It provides information about the field that caused the violation, the specific rule that wasn’t fulfilled, and a human-readable error message.
Violations
Violations is a collection of Violation messages. This message type is returned by protovalidate when a proto message fails to meet the requirements set by the Rule validation rules. Each individual violation is represented by a Violation message.

Enums§

Ignore
Specifies how FieldRules.ignore behaves. See the documentation for FieldRules.required for definitions of “populated” and “nullable”.
KnownRegex
WellKnownRegex contain some well-known patterns.