Found a small problems with underscore.
The endpoint is providing the "_foobar" and "foobar" names of objects. The the generated code creates 2 selectFoobar() functions, hence its an error.
Not sure how to tackle this. Maybe replace the underscore with some character combination?