Adds a rule checking whether a field has been moved into or out of a oneof, which is a backwards-incompatible change for Go protobuf stubs per https://google.aip.dev/180#moving-into-oneofs.
In addition to the passing unit tests, I've also tested this locally via our custom tooling & protolock plugins and verified it behaves as expected.
Resolves https://github.com/nilslice/protolock/issues/133 by adding a
OneofParent
field to aField
type.Adds a rule checking whether a field has been moved into or out of a
oneof
, which is a backwards-incompatible change for Go protobuf stubs per https://google.aip.dev/180#moving-into-oneofs.In addition to the passing unit tests, I've also tested this locally via our custom tooling & protolock plugins and verified it behaves as expected.