{"action":"created","issue":{"url":"https://api.github.com/repos/bootprint/bootprint/issues/14","repository_url":"https://api.github.com/repos/bootprint/bootprint","labels_url":"https://api.github.com/repos/bootprint/bootprint/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/bootprint/bootprint/issues/14/comments","events_url":"https://api.github.com/repos/bootprint/bootprint/issues/14/events","html_url":"https://github.com/bootprint/bootprint/pull/14","id":151758571,"number":14,"title":"fixes YAMLException that occurs on some openapi yaml","user":{"login":"kitplummer","id":4249,"avatar_url":"https://avatars.githubusercontent.com/u/4249?v=3","gravatar_id":"","url":"https://api.github.com/users/kitplummer","html_url":"https://github.com/kitplummer","followers_url":"https://api.github.com/users/kitplummer/followers","following_url":"https://api.github.com/users/kitplummer/following{/other_user}","gists_url":"https://api.github.com/users/kitplummer/gists{/gist_id}","starred_url":"https://api.github.com/users/kitplummer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitplummer/subscriptions","organizations_url":"https://api.github.com/users/kitplummer/orgs","repos_url":"https://api.github.com/users/kitplummer/repos","events_url":"https://api.github.com/users/kitplummer/events{/privacy}","received_events_url":"https://api.github.com/users/kitplummer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-28T22:33:48Z","updated_at":"2016-04-29T21:40:24Z","closed_at":"2016-04-29T21:17:37Z","pull_request":{"url":"https://api.github.com/repos/bootprint/bootprint/pulls/14","html_url":"https://github.com/bootprint/bootprint/pull/14","diff_url":"https://github.com/bootprint/bootprint/pull/14.diff","patch_url":"https://github.com/bootprint/bootprint/pull/14.patch"},"body":"```sh\r\n➜  ion-swagger git:(bunsen-singular) bootprint -d openapi v1-bunsen-swagger.yml target\r\nLoading bootprint-openapi 0.16.0\r\nLoading bootprint-json-schema 0.8.6\r\nLoading bootprint-base 0.7.2\r\nServing \"target\" at http://127.0.0.1:8181\r\n\r\n/usr/local/lib/node_modules/bootprint/node_modules/q/q.js:155\r\n                throw e;\r\n                ^\r\nYAMLException: duplicated mapping key at line 158, column 1:\r\n    definitions:\r\n    ^\r\n    at generateError (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:162:10)\r\n    at throwError (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:168:9)\r\n    at storeMappingPair (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:305:7)\r\n    at readBlockMapping (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:1065:9)\r\n    at composeNode (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:1326:12)\r\n    at readBlockMapping (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:1056:11)\r\n    at composeNode (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:1326:12)\r\n    at readBlockMapping (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:1056:11)\r\n    at composeNode (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:1326:12)\r\n    at readBlockMapping (/usr/local/lib/node_modules/bootprint/node_modules/js-yaml/lib/js-yaml/loader.js:1056:11)\r\n```"},"comment":{"url":"https://api.github.com/repos/bootprint/bootprint/issues/comments/215888867","html_url":"https://github.com/bootprint/bootprint/pull/14#issuecomment-215888867","issue_url":"https://api.github.com/repos/bootprint/bootprint/issues/14","id":215888867,"user":{"login":"kitplummer","id":4249,"avatar_url":"https://avatars.githubusercontent.com/u/4249?v=3","gravatar_id":"","url":"https://api.github.com/users/kitplummer","html_url":"https://github.com/kitplummer","followers_url":"https://api.github.com/users/kitplummer/followers","following_url":"https://api.github.com/users/kitplummer/following{/other_user}","gists_url":"https://api.github.com/users/kitplummer/gists{/gist_id}","starred_url":"https://api.github.com/users/kitplummer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitplummer/subscriptions","organizations_url":"https://api.github.com/users/kitplummer/orgs","repos_url":"https://api.github.com/users/kitplummer/repos","events_url":"https://api.github.com/users/kitplummer/events{/privacy}","received_events_url":"https://api.github.com/users/kitplummer/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T21:40:24Z","updated_at":"2016-04-29T21:40:24Z","body":"For sure.  Will try and get to this next week.  My comment above shows the error - it's valid OpenAPI spec, but errors on something.  Honestly, I don't know why it would bonk on the 'definitions' in this particular spec, and not others.  But, I found the resolution in another project that had the same issue:\r\n\r\nhttps://github.com/nodeca/js-yaml/issues/242\r\n\r\nThe fix isn't the version bump on the js-yaml package, that part was just a friendly courtesy.  :)\r\n\r\nI'm not a NodeJS dever so it might take me a bit to dig into the unit-test."}}