Stanislav Vodetskyi
11/29/2023, 1:55 AM{
"id": "x123",
"url": "<https://example.com/api/v1/entity/x123>",
"fullName": "entity-x123"
}
How can this be modeled in pact? If each field just specifies a regex like x\d+
or smth, and x123
as an example, is this enough?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
id
to be a regex of a specific type, then that could suffice. Be careful not to artificially constrain the response types (see this page, and this specific point)Boris
11/29/2023, 3:06 AMfullName
attribute is probably not being parsed or split on the -
, so it only cosmetically seems to need the same value.Boris
11/29/2023, 3:08 AMStanislav Vodetskyi
11/29/2023, 6:26 AM