Stanislav Vodetskyi
02/01/2024, 7:08 AMmap<string, string> labels = 4
in the .proto file).
I've tried:
"labels": {"pact:match": "eachKey(matching(type, 'some-key')), eachValue(matching(type, 'some-value'))"}
and got rpc error: code = FailedPrecondition desc = Failed to match the request message - BodyMismatches({"$.destination": [BodyMismatch { path: "$.destination.labels", expected: None, actual: None, mismatch: "Expected repeated field 'labels' to be empty but received 1 values" }]})
"labels": {"pact:match": "atLeast(0), eachKey(matching(type, 'some-key')), eachValue(matching(type, 'some-value'))"},
and it gave me an error 2024-01-31 22:44:50.5126 ┃ 2024-02-01T06:44:50.498712Z ERROR ThreadId(01) pact_ffi::plugins: Failed to call out to plugin - min-type is not a valid matching rule type
(or at least that's the error I found in the debug logs, in info it was the usual 'pact file contains no protobuf descriptors')Stanislav Vodetskyi
02/01/2024, 7:28 AMrholshausen
02/02/2024, 4:24 AMrholshausen
02/02/2024, 4:25 AMrholshausen
02/02/2024, 4:27 AMStanislav Vodetskyi
02/02/2024, 5:27 PMeachKey
and eachValue
? I was kinda semi-guessing based on your previous comments 🙂rholshausen
02/05/2024, 5:43 AMhow can we say the map accepts 0+ fields
rholshausen
02/05/2024, 5:44 AMeachKey
and eachValue
functions, you don't need anything elserholshausen
02/05/2024, 6:09 AMStanislav Vodetskyi
02/07/2024, 2:31 AMrholshausen
02/07/2024, 5:26 AM