Is your feature request related to a problem? Please describe.
EncodeJSONResponse is currently in routers.go, but it's not even used in that file.
Personally, I don't use the routers feature provided by the generator, so I'd like to delete this file, but I can't because there is a function in it used by other code in the package.
Describe the solution you'd like
Move EncodeJSONResponse to helpers.go: it's a much better place for such a function.
Describe alternatives you've considered
Move the EncodeJSONResponse to its own file, but I don't think that's necessary.
Additional context
Happy to provide a PR if we can agree to the above.
Is your feature request related to a problem? Please describe.
EncodeJSONResponseis currently inrouters.go, but it's not even used in that file.Personally, I don't use the routers feature provided by the generator, so I'd like to delete this file, but I can't because there is a function in it used by other code in the package.
Describe the solution you'd like
Move
EncodeJSONResponsetohelpers.go: it's a much better place for such a function.Describe alternatives you've considered
Move the
EncodeJSONResponseto its own file, but I don't think that's necessary.Additional context
Happy to provide a PR if we can agree to the above.