{"action":"created","issue":{"url":"https://api.github.com/repos/thiagobustamante/typescript-rest-swagger/issues/36","repository_url":"https://api.github.com/repos/thiagobustamante/typescript-rest-swagger","labels_url":"https://api.github.com/repos/thiagobustamante/typescript-rest-swagger/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/thiagobustamante/typescript-rest-swagger/issues/36/comments","events_url":"https://api.github.com/repos/thiagobustamante/typescript-rest-swagger/issues/36/events","html_url":"https://github.com/thiagobustamante/typescript-rest-swagger/pull/36","id":310075825,"number":36,"title":"fix $ref for model schema","user":{"login":"alessandrovaccaro","id":4050031,"avatar_url":"https://avatars0.githubusercontent.com/u/4050031?v=4","gravatar_id":"","url":"https://api.github.com/users/alessandrovaccaro","html_url":"https://github.com/alessandrovaccaro","followers_url":"https://api.github.com/users/alessandrovaccaro/followers","following_url":"https://api.github.com/users/alessandrovaccaro/following{/other_user}","gists_url":"https://api.github.com/users/alessandrovaccaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alessandrovaccaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alessandrovaccaro/subscriptions","organizations_url":"https://api.github.com/users/alessandrovaccaro/orgs","repos_url":"https://api.github.com/users/alessandrovaccaro/repos","events_url":"https://api.github.com/users/alessandrovaccaro/events{/privacy}","received_events_url":"https://api.github.com/users/alessandrovaccaro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-30T14:11:52Z","updated_at":"2018-04-02T17:39:08Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/thiagobustamante/typescript-rest-swagger/pulls/36","html_url":"https://github.com/thiagobustamante/typescript-rest-swagger/pull/36","diff_url":"https://github.com/thiagobustamante/typescript-rest-swagger/pull/36.diff","patch_url":"https://github.com/thiagobustamante/typescript-rest-swagger/pull/36.patch"},"body":"At the moment the library generates swagger references like this:\r\n```json\r\n\"responses\": {\r\n  \"200\": {\r\n    \"description\": \"Ok\",\r\n    \"schema\": {\r\n      \"\": \"#/definitions/ENOCResponseNodeNotesModel\"\r\n    }\r\n  }\r\n}\r\n```\r\nthis PR fixes it giving the schema name property the correct name:\r\n```\r\n\"responses\": {\r\n  \"200\": {\r\n    \"description\": \"Ok\",\r\n    \"schema\": {\r\n      \"$ref\": \"#/definitions/ENOCResponseNodeNotesModel\"\r\n    }\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/thiagobustamante/typescript-rest-swagger/issues/comments/377989152","html_url":"https://github.com/thiagobustamante/typescript-rest-swagger/pull/36#issuecomment-377989152","issue_url":"https://api.github.com/repos/thiagobustamante/typescript-rest-swagger/issues/36","id":377989152,"user":{"login":"thiagobustamante","id":10834356,"avatar_url":"https://avatars2.githubusercontent.com/u/10834356?v=4","gravatar_id":"","url":"https://api.github.com/users/thiagobustamante","html_url":"https://github.com/thiagobustamante","followers_url":"https://api.github.com/users/thiagobustamante/followers","following_url":"https://api.github.com/users/thiagobustamante/following{/other_user}","gists_url":"https://api.github.com/users/thiagobustamante/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagobustamante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagobustamante/subscriptions","organizations_url":"https://api.github.com/users/thiagobustamante/orgs","repos_url":"https://api.github.com/users/thiagobustamante/repos","events_url":"https://api.github.com/users/thiagobustamante/events{/privacy}","received_events_url":"https://api.github.com/users/thiagobustamante/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T17:39:08Z","updated_at":"2018-04-02T17:39:08Z","author_association":"OWNER","body":"I could not reproduce the problem. In test case, all responses were correctly generated. Can you try to reproduce the problem in a test case?"}}
{"actor":{"display_login":"thiagobustamante"}}