WireMock.Net
WireMock.Net copied to clipboard
Generating mappings from Payroc open-api file gives ArgumentException: Property with the same name already exists on object
Hi! I'm trying to use WireMock for testing my Payroc integration. There's an open-api file I thought I could use to generate the client mock, but when I use WithMappingFromOpenApiFile method, it gives me the following error:
Unhandled exception. System.ArgumentException: Can not add property orderId to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.
I used several tools to generate the C# client classes from the very same open-api file, and all of them succeeded and did not have any critical errors. The open-api file Example on dotnet fiddle Hope this can be fixed. Thanks!