Fork me on GitHub
Luke Schubert19:12:16

extension from the previous question

Luke Schubert19:12:38

I'm trying to have ring-swagger set up with this api

Luke Schubert19:12:53

and using spec internally

Luke Schubert19:12:22

is there anyway to convert a spec to camelCase for the sake of swagger?


You need to transform the swagger spec manually, for example using a custom middleware for the swagger endpoint route


Are you using compojure-api?

Luke Schubert19:12:02

no, luminus+reitit


ok, just add {:middleware [custom-response-kebabizer]} to the swagger routes


looking at the code ( , it would be a non-breaking change to add options to the swagger handler to do that more elegantly.