-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introspect message fields if the field type changes to see if the actual message types are breaking for WIRE, WIRE_JSON #2167
Comments
The rule doesn't mention anything regarding messages: https://buf.build/docs/breaking/rules/#field_wire_compatible_type. But I don't see why this shouldn't be possible for |
|
Thanks for the quick responses! 🙂
That's totally fair! I just wanted to call this out because it was a change that is technically wire compatible, but |
We're going to close this as stale, as I don't think this is an update we're going to be able to staff unfortunately. Apologies. |
Actually on second thought, this might be something we want to do. But going to keep this issue closed in favor of #2318. |
When detecting breaking changes the linter emits a false positive when changing the type of a mesasge. The format of our
buf.yaml
is:Example
Say you have the protobuf message:
and you change it to:
this is a wire compatible change, but
buf
indicates that it is not.google.protobuf.Empty
is a message with zero fields, andOverflowValue
is a message with one optional field. For a type originally serialized with the first version, and deserialized with the second, you'll get anOverflowValue
message where the innervalue
field is an empty string.Apologies if this is a duplicate issue, I searched but could not find anything 🙂
The text was updated successfully, but these errors were encountered: