{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/213","repository_url":"https://api.github.com/repos/swagger-api/swagger-parser","labels_url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/213/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/213/events","html_url":"https://github.com/swagger-api/swagger-parser/issues/213","id":140763647,"number":213,"title":"Relative refs inside of a ref'd section have the wrong context.","user":{"login":"nicksloan","id":458971,"avatar_url":"https://avatars.githubusercontent.com/u/458971?v=3","gravatar_id":"","url":"https://api.github.com/users/nicksloan","html_url":"https://github.com/nicksloan","followers_url":"https://api.github.com/users/nicksloan/followers","following_url":"https://api.github.com/users/nicksloan/following{/other_user}","gists_url":"https://api.github.com/users/nicksloan/gists{/gist_id}","starred_url":"https://api.github.com/users/nicksloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicksloan/subscriptions","organizations_url":"https://api.github.com/users/nicksloan/orgs","repos_url":"https://api.github.com/users/nicksloan/repos","events_url":"https://api.github.com/users/nicksloan/events{/privacy}","received_events_url":"https://api.github.com/users/nicksloan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-14T18:47:43Z","updated_at":"2016-03-14T18:47:43Z","closed_at":null,"body":"Observed when running `swagger-codegen generate -l typescript-node -o SDK -i index.yaml` against [this source](/communityelf/UpContent-API-Spec).\r\n\r\nI've created two branches with minimal examples. The only relevant files for these branches are `index.yaml`, `path/infomous.yaml` and `definitions/error.yaml`.\r\n\r\nThe [testforron branch](/communityelf/UpContent-API-Spec/tree/testforron) demonstrates the breakage on what I believe to be the correct syntax/path for the ref in `path/infomous.yaml`. \r\n\r\nThe [testforron2 branch](/communityelf/UpContent-API-Spec/tree/testforron2) demonstrates that the ref is working in `path/infomous.yaml`. In this case, the path is being resolved as if it were from the root, not from the path subdirectory.\r\n\r\nThis may be related to an [issue reported on swagger-codegen](/swagger-api/swagger-codegen/issues/1551)."}}