August Wang
06/11/2025, 9:30 PMrepeated
enum field in the response, the consumer has to define the expectation of that field in the consumer test. Otherwise the generated pact file will expect empty in that field, thus cause error on the provider side, for example
1) Verifying a pact between grpcconsumer and grpcprovider Given feature 'Big Tree' exists - Route guide - GetFeature
1.1) has a matching body
$.some_enum -> Expected repeated field 'some_enum' to be empty but received 2 value(s)
The error can be reproduced by the code in this PR https://github.com/pact-foundation/pact-go/pull/523, and we used pact-plugin-cli protobuf 0.5.4
libpact_ffi 0.4.27
.
According to Postel’s law, “any extra field will be ignored by your consumer”, and this seems not to be the case. Could you help take a look? Thank you!
cc: @Stanislav Vodetskyirholshausen
06/11/2025, 11:08 PMAugust Wang
06/12/2025, 12:57 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Stanislav Vodetskyi
06/12/2025, 6:14 AMMatt (pactflow.io / pact-js / pact-go)
Stanislav Vodetskyi
06/12/2025, 7:07 PM