Is there a change in schema compatibility rules for optional complex types? #3787
Closed
rahulgulati89
started this conversation in
General
Replies: 1 comment
-
|
For proto3 files the b/optionals/v1/other.proto:12:3:Field "1" on message "OptionalMessage" moved from outside to inside a oneof.This was for the rule Commenting here to close off the discussion from slack, we are adding some more documentation to make the field presence issue more clear. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We are trying to upgrade from buf 1.11 to buf 1.32 and found that the comatibility rules and their return codes have changed for some scenarios when we go from older version to newer version.
Lets say we have the following proto schema which uses a another schema as a reference.
When i try to make the field as an optional like below, then buf 1.32 does not break the compatibility and gives output with 0 return code. However if i stay on 1.11 then it treats this change as a breaking change and gives the output with return code as 100.
Similarly, If I change the optional field back to non optional then also newer version of buf does not complain.
Beta Was this translation helpful? Give feedback.
All reactions