ardielle-tools icon indicating copy to clipboard operation
ardielle-tools copied to clipboard

Go: Bad codegen when using colliding method + type APIs

Open gotwarlost opened this issue 8 years ago • 0 comments

Use case:

I had a resource resource Foo GET /bar/baz. I also want resource Foo Get /something/else (for backwards compatibility).

To do that I name one of the resources different from the generated name. Problem is that schema stills has 2 variables named mGetFoo and does not compile. The member variables in the schema should be named using the resource name if available and not always use the generated name.

gotwarlost avatar Sep 07 '17 21:09 gotwarlost