{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1258","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1258/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1258/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1258/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1258","id":107346346,"number":1258,"title":"[spring-mvc]swagger codegen for spring-mvc imports \"io.swagger.model.Object\" for some definitions","user":{"login":"tckb","id":939542,"avatar_url":"https://avatars.githubusercontent.com/u/939542?v=3","gravatar_id":"","url":"https://api.github.com/users/tckb","html_url":"https://github.com/tckb","followers_url":"https://api.github.com/users/tckb/followers","following_url":"https://api.github.com/users/tckb/following{/other_user}","gists_url":"https://api.github.com/users/tckb/gists{/gist_id}","starred_url":"https://api.github.com/users/tckb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tckb/subscriptions","organizations_url":"https://api.github.com/users/tckb/orgs","repos_url":"https://api.github.com/users/tckb/repos","events_url":"https://api.github.com/users/tckb/events{/privacy}","received_events_url":"https://api.github.com/users/tckb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-19T17:32:56Z","updated_at":"2015-09-29T20:56:52Z","closed_at":null,"body":"Hi, this is a weird bug from swagger-codegen. Apparently for some definitions, the spring-mvc codegen imports [modelpackage].Object in the corresponding class file. this of course raises a compile time error. \r\nNot sure why this occurs only for some definitions, here are some of the definitions:\r\n\r\n```\r\nWebserviceResponse:\r\n    type: object\r\n    description: A generic webservice response  for every webservice request\r\n    properties:\r\n      meta_data:\r\n        $ref: \"#/definitions/WebResponseMetaData\"\r\n      response_object:\r\n        type: object\r\n        description: 'on `http_status`=200, response object encapsulated in it'\r\nWebResponseMetaData:\r\n    type: object\r\n    properties:\r\n      status:\r\n        type: string\r\n        description: 'status of the response, either \"Sucess/failure\"'\r\n      http_status:\r\n        type: integer\r\n        description: 'HTTP response code, `200` for successful operation| `500`  for server side error'\r\n      success_message:\r\n        type: string\r\n        description: additioanl sucess message\r\n      error_message:\r\n        type: string\r\n        description: description of error message"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/144189082","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1258#issuecomment-144189082","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1258","id":144189082,"user":{"login":"gboysko","id":636721,"avatar_url":"https://avatars.githubusercontent.com/u/636721?v=3","gravatar_id":"","url":"https://api.github.com/users/gboysko","html_url":"https://github.com/gboysko","followers_url":"https://api.github.com/users/gboysko/followers","following_url":"https://api.github.com/users/gboysko/following{/other_user}","gists_url":"https://api.github.com/users/gboysko/gists{/gist_id}","starred_url":"https://api.github.com/users/gboysko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gboysko/subscriptions","organizations_url":"https://api.github.com/users/gboysko/orgs","repos_url":"https://api.github.com/users/gboysko/repos","events_url":"https://api.github.com/users/gboysko/events{/privacy}","received_events_url":"https://api.github.com/users/gboysko/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T20:56:52Z","updated_at":"2015-09-29T20:56:52Z","body":"I'm experiencing the same problem. Just started to use Swagger and got tripped up by this..."}}