{"action":"opened","issue":{"url":"https://api.github.com/repos/apiaryio/protagonist/issues/82","labels_url":"https://api.github.com/repos/apiaryio/protagonist/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/protagonist/issues/82/comments","events_url":"https://api.github.com/repos/apiaryio/protagonist/issues/82/events","html_url":"https://github.com/apiaryio/protagonist/issues/82","id":101740324,"number":82,"title":"Navigating to an index reported by warnings","user":{"login":"seglo","id":1148412,"avatar_url":"https://avatars.githubusercontent.com/u/1148412?v=3","gravatar_id":"","url":"https://api.github.com/users/seglo","html_url":"https://github.com/seglo","followers_url":"https://api.github.com/users/seglo/followers","following_url":"https://api.github.com/users/seglo/following{/other_user}","gists_url":"https://api.github.com/users/seglo/gists{/gist_id}","starred_url":"https://api.github.com/users/seglo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seglo/subscriptions","organizations_url":"https://api.github.com/users/seglo/orgs","repos_url":"https://api.github.com/users/seglo/repos","events_url":"https://api.github.com/users/seglo/events{/privacy}","received_events_url":"https://api.github.com/users/seglo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-18T20:19:59Z","updated_at":"2015-08-18T20:19:59Z","closed_at":null,"body":"Hey,\r\n\r\nI have a large API document that I'm using `hercule` to transclude together.  I'm using `aglio` to generate documentation and it's working, but I get warnings that are from `protagonist`.  I would like to troubleshoot the warnings it's describing, but I don't know how to make use of the information it gives me.\r\n\r\nIn the `protagonist` readme it says a warning index represents:\r\n\r\n> Zero-based index of the character where the warning occurs\r\n\r\nBut for a warning like this:\r\n\r\n```javascript\r\n{\r\n    \"code\": 5,\r\n    \"message\": \"ignoring additional request header(s), specify this header(s) in the referenced model definition instead\",\r\n    \"location\": [\r\n      {\r\n        \"index\": 21262,\r\n        \"length\": 17\r\n      }\r\n    ]\r\n  }\r\n```\r\n\r\nHow am I supposed to find index 21262?  My transcluded document has line breaks.  I'm using sublime to navigate it, but I can only navigate by col:row syntax - not an offset from the beginning of the file.  \r\n\r\nPlease advise how I can better make use of this warning info?"}}