{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/728","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/728/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/728/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/728","id":74026127,"number":728,"title":"recursive model definitions causes crash","user":{"login":"intrz","id":6050035,"avatar_url":"https://avatars.githubusercontent.com/u/6050035?v=3","gravatar_id":"","url":"https://api.github.com/users/intrz","html_url":"https://github.com/intrz","followers_url":"https://api.github.com/users/intrz/followers","following_url":"https://api.github.com/users/intrz/following{/other_user}","gists_url":"https://api.github.com/users/intrz/gists{/gist_id}","starred_url":"https://api.github.com/users/intrz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intrz/subscriptions","organizations_url":"https://api.github.com/users/intrz/orgs","repos_url":"https://api.github.com/users/intrz/repos","events_url":"https://api.github.com/users/intrz/events{/privacy}","received_events_url":"https://api.github.com/users/intrz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/P2","name":"P2","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/1","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/v2.1.0","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/1/labels","id":829713,"number":1,"title":"v2.1.0","description":"","creator":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":52,"state":"closed","created_at":"2014-10-17T02:23:53Z","updated_at":"2016-02-19T02:25:36Z","due_on":"2015-04-19T07:00:00Z","closed_at":"2015-09-08T12:36:09Z"},"comments":13,"created_at":"2015-05-07T15:26:44Z","updated_at":"2016-03-09T13:55:54Z","closed_at":"2015-05-22T15:26:05Z","body":"If you have a model with a self reference, the code generator crashes:\r\n\r\n\r\n```yaml\r\ndefinitions:\r\n  pet:\r\n    required:\r\n      - id\r\n      - name\r\n    properties:\r\n      id:\r\n        type: integer\r\n        format: int64\r\n      name:\r\n        type: string\r\n      tag:\r\n        type: string\r\n      children:\r\n        type: array\r\n        items: \r\n          $ref: '#/definitions/pet'\r\n```"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/194306993","html_url":"https://github.com/swagger-api/swagger-codegen/issues/728#issuecomment-194306993","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/728","id":194306993,"user":{"login":"JohnGalt1717","id":1868147,"avatar_url":"https://avatars.githubusercontent.com/u/1868147?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnGalt1717","html_url":"https://github.com/JohnGalt1717","followers_url":"https://api.github.com/users/JohnGalt1717/followers","following_url":"https://api.github.com/users/JohnGalt1717/following{/other_user}","gists_url":"https://api.github.com/users/JohnGalt1717/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnGalt1717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnGalt1717/subscriptions","organizations_url":"https://api.github.com/users/JohnGalt1717/orgs","repos_url":"https://api.github.com/users/JohnGalt1717/repos","events_url":"https://api.github.com/users/JohnGalt1717/events{/privacy}","received_events_url":"https://api.github.com/users/JohnGalt1717/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T13:55:54Z","updated_at":"2016-03-09T13:55:54Z","body":"Already done. But I was just making a point that this isn't really an issue here, it's a UI and parsing issue on the other side."}}