mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
JsonPartialMatcher example 1 results in an error on server startup #441
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 @rosemaryehlers on GitHub (Aug 22, 2022).
Originally assigned to: @StefH on GitHub.
I copied example 1 from the JsonPartialMatcher wiki into a
test.jsonstatic mapping file. When I start my wiremock docker container, I get the following error:Only thing I've changed is the Guid. For reference, here is the copied file:
And here is a link to the wiki I copied it from: Json mapping option 1
@StefH commented on GitHub (Aug 22, 2022):
@rosemaryehlers
The example was wrong.
For path, you can only use a
stringor matcher which implementsIStringMatcher(which is fine for e.g. WildcardMatcher)For the body, you can use a JsonPartialMatcher