Eric Rollins
03/12/2024, 1:44 PMEric Rollins
03/12/2024, 1:57 PMbody.stringMatcher(
"toolDockerImage", <regex-requirmement>, <Fixed example of passing string>);
it seems strange to have to port the provider’s regex over to the consumer, but maybe it’s just new to me.
I am wondering if it is any better to do something like:
body.stringType(
"toolDockerImage", <Fixed example of passing string>);
That way you wouldn’t have to port over a potentially complex regex expression.Eric Rollins
03/12/2024, 2:09 PMbody.numberType("age", 10))
In this case, the provider might have a range requirement of 0-130, but the statement above would specify the contract is only looking for a number. However, every time the contract is verified on the provider side, the value of 10 will be used to test.
Am I understanding that correctly?Boris
03/13/2024, 4:21 AMBoris
03/13/2024, 4:22 AMBoris
03/13/2024, 4:24 AMEric Rollins
03/13/2024, 1:48 PM