WireMock.Net icon indicating copy to clipboard operation
WireMock.Net copied to clipboard

Generating mappings from Payroc open-api file gives ArgumentException: Property with the same name already exists on object

Open Cherepoc opened this issue 8 months ago • 3 comments

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!

Cherepoc avatar Jun 12 '24 20:06 Cherepoc