payload: {"action":"created","issue":{"url":"https://api.github.com/repos/LucyBot-Inc/api-spec-converter/issues/209","repository_url":"https://api.github.com/repos/LucyBot-Inc/api-spec-converter","labels_url":"https://api.github.com/repos/LucyBot-Inc/api-spec-converter/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/LucyBot-Inc/api-spec-converter/issues/209/comments","events_url":"https://api.github.com/repos/LucyBot-Inc/api-spec-converter/issues/209/events","html_url":"https://github.com/LucyBot-Inc/api-spec-converter/issues/209","id":434137478,"node_id":"MDU6SXNzdWU0MzQxMzc0Nzg=","number":209,"title":"API Blueprint -> Swagger 2.0, no info about models (resources)","user":{"login":"Vanderhoof","id":12543857,"node_id":"MDQ6VXNlcjEyNTQzODU3","avatar_url":"https://avatars1.githubusercontent.com/u/12543857?v=4","gravatar_id":"","url":"https://api.github.com/users/Vanderhoof","html_url":"https://github.com/Vanderhoof","followers_url":"https://api.github.com/users/Vanderhoof/followers","following_url":"https://api.github.com/users/Vanderhoof/following{/other_user}","gists_url":"https://api.github.com/users/Vanderhoof/gists{/gist_id}","starred_url":"https://api.github.com/users/Vanderhoof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vanderhoof/subscriptions","organizations_url":"https://api.github.com/users/Vanderhoof/orgs","repos_url":"https://api.github.com/users/Vanderhoof/repos","events_url":"https://api.github.com/users/Vanderhoof/events{/privacy}","received_events_url":"https://api.github.com/users/Vanderhoof/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-17T07:41:35Z","updated_at":"2019-04-19T23:16:47Z","closed_at":null,"author_association":"NONE","body":"When converting from API blueprint to Swagger 2.0, all the information about resources and models is ignored. For instance, I look at [this API Blueprint example](https://github.com/apiaryio/api-blueprint/blob/master/examples/Gist%20Fox%20API%20%2B%20Auth.md), here's the `definitions` I get after converting it into swagger:\r\n\r\n```json\r\n  \"definitions\": {\r\n    \"Authorization\": {},\r\n    \"AuthorizationModel\": {},\r\n    \"Gist\": {},\r\n    \"Gist Fox API Root\": {},\r\n    \"GistModel\": {},\r\n    \"Gists Collection\": {},\r\n    \"Gists CollectionModel\": {},\r\n    \"Star\": {},\r\n    \"StarModel\": {}\r\n  }\r\n```\r\n\r\nBut the resource definition in Blueprint looks like this:\r\n\r\n```Markdown\r\n## Star [/gists/{id}/star{?access_token}]\r\nStar resource represents a Gist starred status.\r\n\r\nThe Star resource has the following attribute:\r\n\r\n+ starred\r\n\r\n+ Parameters\r\n    + id (string) - ID of the gist in the form of a hash\r\n    + access_token (string, optional) - Gist Fox API access token.\r\n\r\n+ Model (application/hal+json)\r\n\r\n    HAL+JSON representation of Star Resource.\r\n\r\n    + Headers\r\n\r\n            Link: <http:/api.gistfox.com/gists/42/star>;rel=\"self\"\r\n\r\n    + Body\r\n\r\n            {\r\n                \"_links\": {\r\n                    \"self\": { \"href\": \"/gists/42/star\" },\r\n                },\r\n                \"starred\": true\r\n            }\r\n```\r\n\r\nA lot of info is lost, including (most importantly) the resource description. Also I can't understand why I get two definitions:\r\n\r\n```json\r\n\"Star\": {},\r\n\"StarModel\": {}\r\n```"},"comment":{"url":"https://api.github.com/repos/LucyBot-Inc/api-spec-converter/issues/comments/485035781","html_url":"https://github.com/LucyBot-Inc/api-spec-converter/issues/209#issuecomment-485035781","issue_url":"https://api.github.com/repos/LucyBot-Inc/api-spec-converter/issues/209","id":485035781,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NTAzNTc4MQ==","user":{"login":"kminami","id":4717846,"node_id":"MDQ6VXNlcjQ3MTc4NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/4717846?v=4","gravatar_id":"","url":"https://api.github.com/users/kminami","html_url":"https://github.com/kminami","followers_url":"https://api.github.com/users/kminami/followers","following_url":"https://api.github.com/users/kminami/following{/other_user}","gists_url":"https://api.github.com/users/kminami/gists{/gist_id}","starred_url":"https://api.github.com/users/kminami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kminami/subscriptions","organizations_url":"https://api.github.com/users/kminami/orgs","repos_url":"https://api.github.com/users/kminami/repos","events_url":"https://api.github.com/users/kminami/events{/privacy}","received_events_url":"https://api.github.com/users/kminami/received_events","type":"User","site_admin":false},"created_at":"2019-04-19T23:16:47Z","updated_at":"2019-04-19T23:16:47Z","author_association":"NONE","body":"Hi, I'm a developer of [apib2swagger](https://github.com/kminami/apib2swagger) one of the dependencies of `api-spec-converter`.\r\nThe reason definitions are blank is the `Model` section doesn't include `Schema` or `Attributes` section (only an example of body is included).\r\n\r\nRecently, I apply the `schema estimation from examples` logic to Model section at `apib2swagger@1.9.0`.\r\nPlease try it, but the Body includes invalid JSON (trailing commas...)."}}
other: {"actor":{"display_login":"kminami"}}