Hey all, Consider this scenario : Provider is C# ...
# pactflow
p
Hey all, Consider this scenario : Provider is C# based Consumer is Java based. On both sides, there is a property call SellingPrice which is a Decimal on Provider side while it is BigDecimal on consumer side. Will this cause any issues while performing verification on Provider side?
m
that depends on how it is sent over the wire!
p
Can you elaborate what you mean by "sent over the wire", please? Do you mean the format, like json or text?
m
You canโ€™t send a
Decimal
over JSON, so how are you representing it when it is sent from consumer to provider over the internet. Assuming JSON, is it a
number
or a
string
?
๐Ÿ‘Œ 1
๐Ÿ˜ฎ 1
p
It is a number, I see what you mean.
This cleared my initial doubt as well. Thanks for the clarification. ๐Ÿ˜…
๐Ÿ‘ 1
m
no worries!