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
hello,
I'm wondering if it possible to add matching rules on path/uri.
for example, I a provider service which accept GET request with id in the path foo/bar/:id
I want the stubbed server to ignore the actual id I send from my consumer service.
I saw that currently there is only matching rule on body and headers, but not on path although the pact v3 spec allows that.
I tried to add a custom rule to my "interaction" in the form of Some(List(ScalaPactMatchingRuleRegex("$.path", "/foo/bar/\\d+")))
but id didn't work.
if this is indeed possible, I would love your help on who to achieve this
Thanks!
hello,
I'm wondering if it possible to add matching rules on path/uri.
for example, I a provider service which accept GET request with id in the path
foo/bar/:idI want the stubbed server to ignore the actual id I send from my consumer service.
I saw that currently there is only matching rule on body and headers, but not on path although the pact v3 spec allows that.
I tried to add a custom rule to my "interaction" in the form of
Some(List(ScalaPactMatchingRuleRegex("$.path", "/foo/bar/\\d+")))but id didn't work.
if this is indeed possible, I would love your help on who to achieve this
Thanks!