You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aim to test a field "partitionKey" as RegEx "[A-Z]{3}", like "ABC01".
below code cannot add to "matchingRules" in contract, is there anyway in Pact can do that?
Your regex is wrong, it also needs to match the values after the initial 3 letters. So [A-Z]{3}.* or [A-Z]{3}\\d+
Also make sure you are using the correct class, it should be au.com.dius.pact.core.model.matchingrules.RegexMatcher.
I've also added a metadata DSL class to make it easier to setup matching rules for message metadata, for instance,
I am aim to test a field "partitionKey" as RegEx "[A-Z]{3}", like "ABC01".
below code cannot add to "matchingRules" in contract, is there anyway in Pact can do that?
The text was updated successfully, but these errors were encountered: