mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Import from OpenApi generates model with path parameter narrowed in range (example value=42 instead of '*') #347
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @phojnacki on GitHub (Apr 22, 2021).
I cannot generate pattern with wildcard like:
I can only generate one with
It's too narrow since I cannot emulate fully mocked API (only request with 42 is working and the rest of requests answer with "No matching mapping found")
I'd like it to be possible to generate patterns with wildcards having following OpenApi definition:
We may think of an optional import parameter UseExampleValuesInPaths=false or similar.
@StefH commented on GitHub (Apr 23, 2021):
@phojnacki Can you please provide a full working openapi document which has this issue?
@StefH commented on GitHub (Apr 24, 2021):
@phojnacki / @kusza6
Can you try preview version : 1.4.12-ci-14936 (https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions)
@phojnacki commented on GitHub (Apr 26, 2021):
@StefH Yey, it works like a charm. Thanks a lot for adding this feature.