Skip to content

Commit

Permalink
Refactor LT/GT into a oneof (#76)
Browse files Browse the repository at this point in the history
relates to #77

In the given changes to the file
"proto/protovalidate/buf/validate/validate.proto", several modifications
have been made to the message definitions. The following actions were
taken:

- Previously existing oneof fields "_gt", "_gte", "_lt", and "_lte" were
removed from messages like "FloatRules," "DoubleRules," "Int32Rules,"
and so on.
- Fields within these messages were restructured: fields originally
associated with "_lt" and "_lte" were moved to the "less_than" oneof,
and fields originally associated with "_gt" and "_gte" were moved to the
"greater_than" oneof.
- Furthermore, certain fields originally associated with "_lt_now" were
moved to the "less_than" oneof, and fields associated with "_gt_now"
were moved to the "greater_than" oneof.
  • Loading branch information
elliotmjackson authored Aug 22, 2023
1 parent d45e490 commit d61466d
Show file tree
Hide file tree
Showing 4 changed files with 6,132 additions and 5,305 deletions.
4 changes: 2 additions & 2 deletions proto/protovalidate-testing/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ deps:
- remote: buf.build
owner: bufbuild
repository: protovalidate
commit: 4464c06fa39945d7af6dee1e63790bc6
digest: shake256:575d37fe369598cb2c178b1e15d7c21773ded82bbc539d7c5dfb51c516da583d322d7d09882e5e00350424ca69c17fd5f8fd3ba2f96d6fe915769cbbda31d01b
commit: 1c33ebd9ecfa4653b8c1e662f84d1acf
digest: shake256:4e3d93b2859a799ed4c08f530c62da1647cb85adacb3ff085dff6959a8d0a73989f3b8527145ee8b0783cd4e5264eaf0c0a76c206404f9520fce608b525559cb
Loading

0 comments on commit d61466d

Please sign in to comment.