Thomas
02/17/2023, 11:42 AMGET /users/{user_id}/settings
{user_id}
is defined as string
with a regex to validate the format in detail (int, uuid or other formats).
The consumer calls the API with GET /users/1234/settings
and the pact check fails with "No request method is found /users/1234/settings" => "Path or method not defined in spec file: GET /users/1234/settings"
.
When I remove the regex check from the producer OAS file, then the pact check works.Matt (pactflow.io / pact-js / pact-go)
Thomas
02/17/2023, 12:09 PMThomas
02/17/2023, 12:10 PMThomas
02/17/2023, 12:14 PMThomas
02/17/2023, 12:36 PM\A Start of string
\z End of string
instead of
^ Start of line
$ End of line
Build is running.Thomas
02/17/2023, 1:07 PM^
and $
fixed it.