mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
JsonPartialWildcardMatcher for grpc protobuf is not working #658
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 @GomesNayagam on GitHub (Dec 31, 2024).
Originally assigned to: @StefH on GitHub.
@StefH commented on GitHub (Dec 31, 2024):
In case you want to use a wildcard, use the JsonPartialWildcardMatcher.
https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching-JsonPartialWildcardMatcher
@GomesNayagam commented on GitHub (Dec 31, 2024):
tried that as well it is not working @StefH
@StefH commented on GitHub (Jan 1, 2025):
@GomesNayagam
Can you verify which matches are working, and which are not?
See
https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching-Tips
@StefH commented on GitHub (Jan 1, 2025):
This unit test works fine:
@GomesNayagam commented on GitHub (Jan 3, 2025):
@StefH thanks for the sample, for simple sample it works unfortunately none of the jsonmatcher works for actual project codebase, i guess it could be namespace in proto issue but i am not sure. is there anyway to debug in detail to see whats going wrong?
@StefH commented on GitHub (Jan 3, 2025):
Can you share the proto file?
@GomesNayagam commented on GitHub (Jan 3, 2025):
thanks for reopening @StefH here is the proto content
@StefH commented on GitHub (Jan 3, 2025):
@GomesNayagam
I think in your case, the matcher should be like this:
Because CorrelationId is a property of Client which is a property of the GetVersionRequest?
@GomesNayagam commented on GitHub (Jan 4, 2025):
thanks it works, apologies for the silly mistake.