Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generating lookup for `repeated.items.int32.in` This PR fixes the `in` field validation for repeated int32 fields. The current generated code doesn't emit the lookup map e.g. ```go // message DoSomethingRequest { // repeated int32 field_with_int32_type = 4 [ (validate.rules).repeated.items.int32 = { in: [25,50] } ]; // } // Generated code doesn't have this section var _DoSomethingRequest_FieldWithInt32Type_InLookup = map[int32]struct{}{ 25: {}, 50: {}, } ``` I also added a Test cases for both int32 and int64
- Loading branch information