Case sensitive true is ignored for JsonMatcher
The JSON matcher is doing a deep compare on JSON string and it looks like it's case sensitive. When creating a matcher, I specify CaseSensitive = false, but this is not used by the matcher. Should it be possible to configure JSON matcher to be case insensitive?
https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net/Matchers/JsonMatcher.cs
This can be implemented, however only for strings.
This would help a lot. Can try doing PR myself with a bit of direction on how you'd like this to be implemented.
I'm looking into this.
And would it be required to also match the property-names CaseIgnore? Or only the string-values?
@viktorpeacock If you want to test this. see preview NuGet : WireMock.Net.1.0.28-ci-11761
Hi, it would help if we could ignore case on both values and property names. Potentially have two properties: IgnoreCaseOnProperties and IgnoreCaseOnPropertyValues?
Just a single IgnoreCase is easier to build and use I think.
Please test WireMock.Net.1.0.28-ci-11769 , this version renames the property name + value.
Any chance you can post a docker image please as we host wiremock in k8s?
Agree RE: IgnoreCase :-) Thank you so much for very fast response!
I can merge this logic to the master and create a new Docker because (as far I see) the original logic is still the same. So tonight or tomorrow I will create new Docker.
@viktorpeacock docker is created
Thank you. Will try this out today!