pub fn validate_wire_value(
schema_path: &Path,
value: &Value,
) -> Result<(), CodegenError>Expand description
Validates a wire value against a package-local JSON Schema.
This is intentionally a small validator for the Descriptor’s portable profile rather than a general JSON Schema implementation. It makes the profile’s loss-sensitive mappings executable: wide integers must use their decimal-string formats, bytes must be canonical base64, and timestamp and duration strings must have their documented wire shapes.