mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Provide exact type values for the response when using OpenApi parser. #360
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 @tvytrykush on GitHub (Oct 4, 2021).
Originally assigned to: @StefH on GitHub.
I'm using
WithMappingFromOpenApiFile(path, settings, out var diag);and it adds mapping from my file just fine, but I'm stuck with generic type values (42 for int, "example-string" for string) when getting a response. In what way can I adjust these values?@StefH commented on GitHub (Oct 4, 2021):
You can provide your own example values to the settings object:
@tvytrykush commented on GitHub (Oct 4, 2021):
@StefH, is it also possible to specify this values per mapping path?
@StefH commented on GitHub (Oct 5, 2021):
@tvytrykush
No sorry that's not possible.
However. maybe when you add an example in the openapi file, these values are used.