Describe the bug
I receive a status code 500 when a downstream swagger document is loaded. (only in 8.1, 8.0 works fine)
Expected behavior
Page to load successfully.
To Reproduce
The Ocelot.json has a wildcard route (E.g '/api/v1/{everything}') and one that is more specific for a given method (E.g POST on /api/v1/resource) for rate limiting, this causes the following exception to be thrown from SwaggerJsonTransformers.cs line 195.
System.ArgumentException: 'Can not add property post to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.
Describe the bug I receive a status code 500 when a downstream swagger document is loaded. (only in 8.1, 8.0 works fine)
Expected behavior Page to load successfully.
To Reproduce The Ocelot.json has a wildcard route (E.g '/api/v1/{everything}') and one that is more specific for a given method (E.g POST on /api/v1/resource) for rate limiting, this causes the following exception to be thrown from SwaggerJsonTransformers.cs line 195.
System.ArgumentException: 'Can not add property post to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.