I have an issue most likely just not understanding how swashbuckle generates swagger json file.
I have a couple API's and all of them share some infrastructure so it is packaged and therefore is shared among all of them. In that infrastructure is added swagger configurations. So I know for sure they all share the same configurations as long as the package itself is up to date.
To my surprise I find that json generated for these APIs is rather different. I use it later with autorest, 2 of those work and one fails with error: Error: Collision detected inserting into object: constructor
The obvious difference I see between those is that the one which fails has some extra parameters generated, such as:
- "Type"
- "MethodBase"
- "Exception"
I am puzzled why those are a part of that specific API swagger json even though all 3 APIs are very similar and as mentioned before all share the same swagger configurations. Am I missing something?
Package/framework versions:
- .Net Core 3.1
- Swashbuckle 5.0.0
- Swashbuckle Filters 5.0.2
- Autorest 3.0.6233
Thank you!