rest: fix enum binding mapper codegen