Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug where cel expression cannot compile for fields of type google…
….protobuf.Any (#65) This fixes the problem where cel expressions defined on fields of type `google.protobuf.Any` cannot compile. For example, when validating a `FieldOfTypeAny` with its `any` field set to a `Simple`, it would fail with ``` runtime error: error evaluating any_type: unknown type: 'tests.example.v1.Simple' ``` ``` message Simple { string s = 1; } message FieldOfTypeAny { google.protobuf.Any any = 1 [(buf.validate.field).cel = { id: "any_type", message: "this should never fail", expression: "this == this" }]; } ```
- Loading branch information