Expand description
Canonical rule metadata shared by the runtime validator and the build-time code generator.
This module is the single source of truth for buf.validate rule
identifiers, violation message text, and rule-combination tables that
both validation engines must agree on byte-for-byte. The runtime crate
(prost-protovalidate) consumes it while compiling evaluators; the build
crate (prost-protovalidate-build) consumes it while emitting generated
validators, embedding the results as literals.
Message text tracks the upstream protovalidate conformance corpus and may change in minor releases; it is not a stability surface of its own.
Modules§
- any
- Metadata for
google.protobuf.Anyrules. - boolean
- Metadata for bool rules.
- bytes
- Metadata for bytes rules.
- duration
- Metadata for
google.protobuf.Durationrules. - enumeration
- Metadata for enum rules.
- field_
mask - Metadata for
google.protobuf.FieldMaskrules. - float
- Canonical IEEE-754 handling shared by
repeated.uniqueon float/double fields, in both the runtime evaluator and generated validators. - map
- Metadata for map rules.
- numeric
- Metadata shared by all twelve proto numeric types
(
int32…sfixed64,float,double). - repeated
- Metadata for repeated rules.
- string
- Metadata for string rules.
- timestamp
- Metadata for
google.protobuf.Timestamprules.