This issue has been resolved. I had to override below mentioned of the Open API templates:
dataClass.mustache
modelMutable.mustache