Hi everyone!:wave: I'm trying WireMock Cloud and s...
# wiremock-cloud
a
Hi everyone!đź‘‹ I'm trying WireMock Cloud and struggling with something when generating a stub from an openAPI specification. It seems that taking an openAPI specification that contains a path containing a dynamic path parameter, WireMock Cloud generates a stub with a path parameter of type "equals" with a specific value (the value of the parameter example or a random generated value if an example does not exist), doesn't it? ÂżIs there a way that WireMock Cloud can generate a dynamic path parameter of type "matches regex" or something similar from an openAPI specification, so that requests can have multiple values for that parameter, not just one value?
t
For 2xx responses it’ll also generate a “generic” stub i.e. one that isn’t constrained by those parameter values. Does that help?
a
Hi Tom, thanks for the answer! I don't think "generic" response can be usefull in my case becasuse I need some requests to match with some error responses in my api mock. I need an automatic generation of stubs with dynamic path parameters from an openAPI specdification I'm afraid