mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
How to get a Random Long? #561
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 @felipetofoli on GitHub (Dec 8, 2023).
Originally assigned to: @StefH on GitHub.
How to get a Random Long?
I tried this implementation:
"{{Random Type=\"Long\" Min=1000000000 Max=9999999999}}", but I am getting an error, even though1000000000and9999999999are valid Int64 numbers.Is this handlebar expression correct? Or do we have a bug when generating Random
longnumbers?Following are more details.
Implementation
Response (error)
Logs
Please, let me know if you need any other information.
Thanks.
@StefH commented on GitHub (Dec 8, 2023):
it's a bug in Handlebars : https://github.com/Handlebars-Net/Handlebars.Net/pull/562
I'll check if I can build a workaround in wiremock
@StefH commented on GitHub (Dec 8, 2023):
https://github.com/WireMock-Net/WireMock.Net/pull/1034
@StefH commented on GitHub (Dec 12, 2023):
Solved in new version
@felipetofoli commented on GitHub (Dec 12, 2023):
Thanks!