Could you, please point me to the right channel? I...
# general
s
Could you, please point me to the right channel? I've got an issue with NumberTypeMatcher where the matcher does not recognise a negative number as Integer ๐Ÿค” Details in ๐Ÿงต
The generated pact looks like this:
Copy code
$.event_details.net_amount=MatchingRuleGroup(rules=[NumberTypeMatcher(numberType=INTEGER)]
The error I get:
Copy code
BodyMismatch(expected=-8000, actual=-8000, mismatch=Expected -8000 (JsonPrimitive) to be an integer
I'm on version 3
Any help would be highly appreciated
(Yes, tried to search the documentation first)
๐Ÿ™ 1
m
Can you please share the actual contract file and also the actual response from the provider?
One hypothesis is that it's a stringified number
I think you're using #C9UN99H24 ? Might have luck in that channel
s
Ok, thank you! I'll try my luck in pact-jvm
๐Ÿ‘ 1