-
I am trying to create my first microcks-powered api mock. I prepared some rest openapi spec, but when I try to use it it seems like my requests are not validated against the provided schemata. Does the microcks perform it by default? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @LeonidShl |
Beta Was this translation helpful? Give feedback.
-
Moving a thread from Discord here:
What we would like to see, is a way to enable schema validation on all request/response data (possibly on a per example/endpoint basis to facilitate "bad/invalid examples") |
Beta Was this translation helpful? Give feedback.
Hi @LeonidShl
Microcks does not currently perform client request validation while mocking. We could add this optional check later.
However, Microcks validates responses against API schema when launching tests. See https://microcks.io/documentation/explanations/conformance-testing/