mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Response is auto converting string to guid #616
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 @RyanMouraBrocco on GitHub (Jul 24, 2024).
Originally assigned to: @StefH on GitHub.
Describe the bug
I am using random-type responses, and when I am trying to return a GUID without the
-it is converted automatically to the GUID with-no matter what I do.An important thing is: I know that is a string conversion to a guid because when I add some static text, the conversion to a guid not happens. (as shown in the additional example)
Expected behavior:
For me, the expected behavior would be not to automatically convert any string that matches the format of a guid into a guid.
Test to reproduce
the result
The result
Additional example
The mapping
the result
@StefH commented on GitHub (Jul 28, 2024):
https://github.com/WireMock-Net/WireMock.Net/pull/1148
@StefH commented on GitHub (Jul 28, 2024):
@RyanMouraBrocco
This has been fixed in WireMock.Net
But note that of you want a random Guid without the "-", you can also provide the format.
Like: