{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1318","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1318/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1318/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1318/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1318","id":81570267,"number":1318,"title":"nested refs not resolving","user":{"login":"gaillard","id":984510,"avatar_url":"https://avatars.githubusercontent.com/u/984510?v=3","gravatar_id":"","url":"https://api.github.com/users/gaillard","html_url":"https://github.com/gaillard","followers_url":"https://api.github.com/users/gaillard/followers","following_url":"https://api.github.com/users/gaillard/following{/other_user}","gists_url":"https://api.github.com/users/gaillard/gists{/gist_id}","starred_url":"https://api.github.com/users/gaillard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaillard/subscriptions","organizations_url":"https://api.github.com/users/gaillard/orgs","repos_url":"https://api.github.com/users/gaillard/repos","events_url":"https://api.github.com/users/gaillard/events{/privacy}","received_events_url":"https://api.github.com/users/gaillard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-27T18:39:43Z","updated_at":"2015-05-27T18:42:15Z","closed_at":null,"body":"I have this little test case with multiple files in the same directory\r\n\r\nswagger.json\r\n```\r\n{\r\n    \"swagger\": \"2.0\",\r\n    \"info\": {\r\n        \"title\": \"TODO title\",\r\n        \"description\": \"TODO description\",\r\n        \"version\": \"1.0.0\"\r\n    },\r\n    \"paths\": {\r\n\t\"/another\": {\r\n            \"$ref\": \"http://localhost/swaggerBug/another.json\"\r\n        },\r\n        \"/files\": {\r\n            \"$ref\": \"http://localhost/swaggerBug/files.json\"\r\n        }\t\r\n    }\r\n}\r\n```\r\n\r\nanother.json\r\n```\r\n{\r\n    \"post\": {\r\n        \"summary\": \"TODO summary\",\r\n        \"description\": \"TODO desc\",\r\n        \"responses\": {\r\n            \"200\": {\r\n                \"description\": \"TODO desc\",\r\n                \"schema\": {\r\n                    \"$ref\": \"http://localhost/swaggerBug/a.json\"\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nfiles.json\r\n```\r\n{\r\n    \"get\": {\r\n        \"summary\": \"TODO summary\",\r\n        \"description\": \"TODO desc\",\r\n        \"responses\": {\r\n            \"200\": {\r\n                \"description\": \"TODO desc\",\r\n                \"schema\": {\r\n                    \"$ref\": \"http://localhost/swaggerBug/file.json\"\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\na.json\r\n```\r\n{\r\n    \"properties\": {\r\n        \"id\": {\r\n            \"type\": \"string\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nfile.json\r\n```\r\n{\r\n    \"properties\": {\r\n        \"id\": {\r\n            \"type\": \"string\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThe network log on chome looks like:\r\n```\r\nswagger.json\r\nlocalhost/swaggerBug\r\nGET\t200\r\nOK\r\napplication/json\tindex.js:24\r\n\r\nanother.json\r\nlocalhost/swaggerBug\r\nGET\t200\r\nOK\r\napplication/json\tindex.js:24\r\n\r\nfiles.json\r\nlocalhost/swaggerBug\r\nGET\t200\r\nOK\r\napplication/json\tindex.js:24\r\n\r\nanother.json\r\nlocalhost/swaggerBug\r\nGET\t200\r\nOK\r\napplication/json\tindex.js:24\r\n\r\nfile.json\r\nlocalhost/swaggerBug\r\nGET\t200\r\nOK\r\napplication/json\tindex.js:24\r\n\r\nanother.json\r\nlocalhost/swaggerBug\r\nGET\t200\r\nOK\r\napplication/json\tindex.js:24\r\n```\r\n\r\nYou'll notice a.json is never fetched and another.json is fetched more than it should be. Am I doing something wrong or is this a bug?\r\n\r\nI should note the same example in a single swagger.json using references like `#/blah/another` work fine."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/106028256","html_url":"https://github.com/swagger-api/swagger-ui/issues/1318#issuecomment-106028256","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1318","id":106028256,"user":{"login":"webron","id":241629,"avatar_url":"https://avatars.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":"2015-05-27T18:42:15Z","updated_at":"2015-05-27T18:42:15Z","body":"Which version of the ui do you use?"}}