{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3048","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3048/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3048/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3048/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/3048","id":158530464,"number":3048,"title":"Don't generate model at all (but instead refer back to the original classes)","user":{"login":"muhmud-v","id":15811144,"avatar_url":"https://avatars.githubusercontent.com/u/15811144?v=3","gravatar_id":"","url":"https://api.github.com/users/muhmud-v","html_url":"https://github.com/muhmud-v","followers_url":"https://api.github.com/users/muhmud-v/followers","following_url":"https://api.github.com/users/muhmud-v/following{/other_user}","gists_url":"https://api.github.com/users/muhmud-v/gists{/gist_id}","starred_url":"https://api.github.com/users/muhmud-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muhmud-v/subscriptions","organizations_url":"https://api.github.com/users/muhmud-v/orgs","repos_url":"https://api.github.com/users/muhmud-v/repos","events_url":"https://api.github.com/users/muhmud-v/events{/privacy}","received_events_url":"https://api.github.com/users/muhmud-v/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-05T00:09:27Z","updated_at":"2016-06-05T00:32:20Z","closed_at":null,"body":"##### Description\r\n\r\nI've searched around, generally & in the issues, but can't find a way to do this. I'd like no model at all to be generated, but instead have the generated code refer back to the original model classes. The --import-mapping option is just too cumbersome. I have a separate jar for my models and I'd just like to use that, even if I have to fix my pom file manually.\r\n\r\n##### Swagger-codegen version\r\n\r\n2.1.6\r\n\r\n##### Suggest a Fix\r\n\r\nHave an option that just doesn't generate models at all, but assumes that the original model classes will be on the class path.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/223786085","html_url":"https://github.com/swagger-api/swagger-codegen/issues/3048#issuecomment-223786085","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3048","id":223786085,"user":{"login":"muhmud-v","id":15811144,"avatar_url":"https://avatars.githubusercontent.com/u/15811144?v=3","gravatar_id":"","url":"https://api.github.com/users/muhmud-v","html_url":"https://github.com/muhmud-v","followers_url":"https://api.github.com/users/muhmud-v/followers","following_url":"https://api.github.com/users/muhmud-v/following{/other_user}","gists_url":"https://api.github.com/users/muhmud-v/gists{/gist_id}","starred_url":"https://api.github.com/users/muhmud-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muhmud-v/subscriptions","organizations_url":"https://api.github.com/users/muhmud-v/orgs","repos_url":"https://api.github.com/users/muhmud-v/repos","events_url":"https://api.github.com/users/muhmud-v/events{/privacy}","received_events_url":"https://api.github.com/users/muhmud-v/received_events","type":"User","site_admin":false},"created_at":"2016-06-05T00:32:20Z","updated_at":"2016-06-05T00:32:20Z","body":"Yeah, just figured out that I can do just apis and supporting files, which with the modelPackage parameter provides output a lot closer to what I want. I still need to do some manual edits, as my models are in grouped into separate sub-packages.\r\n\r\nThinking about it, I see what you mean; the codegen is using swagger.json, not reflection, so doesn't know anything about the original classes, hence wouldn't know what to import. \r\n\r\nIt's cumbersome because I have a fair number of models, and I don't want to have to list all of them & then maintain that list going forward. Some kind of wildcard mapping would be really useful.\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"muhmud-v"}}