Open cdennison opened 8 years ago
my guess is that you'll have to hack up the templates and do some post-processing. i know that's not entirely helpful, but based on the functionality that this tool provides, it may be your only route!
That's fine - I was just asked to submit my comments on SO http://stackoverflow.com/questions/35851014/swagger-converting-underscore-to-camelcase/35875446?noredirect=1#comment60497557_35875446.
@cdennison thanks for sharing your use case with us.
I recently created an SDK for a REST API (https://thingspace.verizon.com) and needed to do the following. Not sure how these fit with the overall goals of swagger-codegen, but I wanted to share my experience.
I wanted to add a custom Auth token to the header of every request, but because I called apiClient.invokeAPI in 6 different places (see above) I had to add that token to each class and set it 6 times.
public CallbackAction registerCallback(String aname, String name, String password, String url, String username) throws ApiException { RegisterCallback request = new RegisterCallback(); request.setName(name); request.setPassword(password); request.setUrl(url); request.setUsername(username); return aCallbacksApi.registerCallbackUsingPOST(aname, request); }