Guillaume Camus
04/06/2022, 1:58 PMWithJSONBody(Map{
"id": Integer(21),
"name": S("foo 2"),
"brand": S("bar 2"),
"price_incl_vat": Regex("23.125", "[0-9]+\\.[0-9]+"),
"price_excl_tax": Regex("18.185", "[0-9]+\\.[0-9]+"),
}).
but that generates a string and not a float, so when I unmarshal the response I have errors.
How I can generate a float ?Guillaume Camus
04/06/2022, 2:02 PMDecimal
Matt (pactflow.io / pact-js / pact-go)