We have used swagger-codegen before and it can generate the model. Let's bring this feature to light-codegen as some people ask for it.