Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

matching on path #186

Description

@Liorba

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions