Does anyone know whether pactflow validates verifi...
# pactflow
b
Does anyone know whether pactflow validates verifies that a provider actually supports all of the query string parameters sent by the consumer? I have a situation where that appears to not be the case.
t
this might be a mis-written contract. In a contract test, you say:
• When I send this request • You will respond with this response
If you don’t include all the parameters sent by the client in the contract, they’re ignored If the provider doesn’t read one of the parameters, but it wasnt necessary to generate that response, the test could also pass
b
The latter is the case.
If the provider doesn’t read one of the parameters, but it wasn't necessary to generate that response, the test could also pass
And as far as I can tell, there is no way in OpenAPI to state that a provider should fail if it receives a query string parameter that it does not use.
t
Why would you want that?
Have a read of the bit in the pact documentation about Postel's law