{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2757","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2757/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2757/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2757/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/2757","id":215700268,"number":2757,"title":"No operations defined in spec! while loading the JSON file","user":{"login":"NagenKumarSahu","id":16772047,"avatar_url":"https://avatars0.githubusercontent.com/u/16772047?v=3","gravatar_id":"","url":"https://api.github.com/users/NagenKumarSahu","html_url":"https://github.com/NagenKumarSahu","followers_url":"https://api.github.com/users/NagenKumarSahu/followers","following_url":"https://api.github.com/users/NagenKumarSahu/following{/other_user}","gists_url":"https://api.github.com/users/NagenKumarSahu/gists{/gist_id}","starred_url":"https://api.github.com/users/NagenKumarSahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NagenKumarSahu/subscriptions","organizations_url":"https://api.github.com/users/NagenKumarSahu/orgs","repos_url":"https://api.github.com/users/NagenKumarSahu/repos","events_url":"https://api.github.com/users/NagenKumarSahu/events{/privacy}","received_events_url":"https://api.github.com/users/NagenKumarSahu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-21T11:03:36Z","updated_at":"2017-03-24T00:26:02Z","closed_at":null,"body":"Hi,\r\nI am able to create the swagger.json file. But when i want to show it in the UI, I am facing the \"No operations defined in spec!\" issue. \r\n\r\nI have done the following changes in the public/index.html file\r\n\r\nwindow.onload = function() {\r\n  // Build a system\r\n  const ui = SwaggerUIBundle({\r\n    //url: \"http://petstore.swagger.io/v2/swagger.json\",\r\n    url: \"http://localhost:9080/E2EVisibility/swagger.json\",\r\n    dom_id: '#swagger-ui',\r\n    presets: [\r\n      SwaggerUIBundle.presets.apis,\r\n      // yay ES6 modules ↘\r\n      Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default\r\n    ],\r\n    plugins: [\r\n      SwaggerUIBundle.plugins.DownloadUrl\r\n    ],\r\n    layout: \"StandaloneLayout\",\r\n    validatorUrl: \"false\"\r\n  })\r\n\r\n  window.ui = ui\r\n}\r\n\r\nPlease help I am new to swagger implementation."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/288899622","html_url":"https://github.com/swagger-api/swagger-ui/issues/2757#issuecomment-288899622","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2757","id":288899622,"user":{"login":"webron","id":241629,"avatar_url":"https://avatars3.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"created_at":"2017-03-24T00:26:02Z","updated_at":"2017-03-24T00:26:02Z","body":"@NagenKumarSahu you're using an old version of Firefox. Try upgrading it and check again."}}
{"actor":{"display_login":"webron"}}