Mike Mertsock - 176 - Feb 20, 2015

I noticed that the model ID/type names generated in Swagger docs are “mangled”, e.g. “POST_MyDtoName/path/to/api/{pathParam1}/{pathParam2}” when I would have expected just “MyDtoName”. Wondering why they look like this. Is it to ensure that the Swagger JS code has unique values to work with?

Yeah it’s to give them unique keys

Mike Mertsock:

ok, cool. For anyone interested, I wrote a Javascript function that cleans up the names: https://gist.github.com/mmertsock/71d26341ad4eda19cbb4