Hello, So one of the questions I have received is....
# general
s
Hello, So one of the questions I have received is.
Copy code
can contract tests ensure the understanding of what is an optional parameter and what is not between provider and consumer (and how)
t
Yes, but I think this not really the right question
Understanding what parameters are optional / not optional is kind of an implementation detail. It’s one solution to “how do I know if these two services can communicate?”
Contract testing side steps the question of optional / not optional by providing clear examples.
☝️ 1
If, in the examples, there are any times the client fails to provide the optional parameter, the contract verification will fail.