{"action":"created","issue":{"url":"https://api.github.com/repos/apiaryio/drafter/issues/123","labels_url":"https://api.github.com/repos/apiaryio/drafter/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/drafter/issues/123/comments","events_url":"https://api.github.com/repos/apiaryio/drafter/issues/123/events","html_url":"https://github.com/apiaryio/drafter/issues/123","id":108305535,"number":123,"title":"Request parameters breaking when examples and copy has underscores","user":{"login":"earnaway","id":12640813,"avatar_url":"https://avatars.githubusercontent.com/u/12640813?v=3","gravatar_id":"","url":"https://api.github.com/users/earnaway","html_url":"https://github.com/earnaway","followers_url":"https://api.github.com/users/earnaway/followers","following_url":"https://api.github.com/users/earnaway/following{/other_user}","gists_url":"https://api.github.com/users/earnaway/gists{/gist_id}","starred_url":"https://api.github.com/users/earnaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earnaway/subscriptions","organizations_url":"https://api.github.com/users/earnaway/orgs","repos_url":"https://api.github.com/users/earnaway/repos","events_url":"https://api.github.com/users/earnaway/events{/privacy}","received_events_url":"https://api.github.com/users/earnaway/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apiaryio/drafter/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-25T11:06:30Z","updated_at":"2015-09-25T13:33:17Z","closed_at":"2015-09-25T11:59:22Z","body":"I originally posted this in the aglio repo, but apparently it's caused by the drafter code, not the aglio, so thought I'd ask in here if drafter was where the bug was. Thanks.\r\n\r\nI've noticed an issue when there are underscores as part of the params in the resources.\r\n\r\nHere's an example:\r\n\r\n```\r\nFORMAT: 1A\r\n\r\n# Test Doc\r\n\r\n# Group Tests\r\n\r\n# Test endpoint [/test{?status,order_by,sort,page,per_page}]\r\n\r\n+ Parameters\r\n    + status: paid (optional, string) - some test status\r\n    + order_by: transaction_date (optional, enum) - one of transaction_date, merchant_network_name, amount, user_commission, status\r\n    + sort: asc (optional, enum) - one of asc, desc\r\n    + page: 1 (optional, integer) - pagination parameter\r\n    + per_page: 5 (optional, integer) - pagination parameter\r\n\r\n### Fetch some data [GET]\r\n\r\n+ Response 204\r\n```\r\n\r\nWhen running aglio against the above with the following command\r\n`\"./node_modules/aglio/bin/aglio.js --theme-style default -i test.apib -o test.html\"`\r\nthen I get the following warning:\r\n\r\n```\r\n>> Line 9: parameter 'order_by: transaction_date' not specified in 'Test endpoint' its '/test{?status,order_by,sort,page,per_page}' URI template (warning code 8)\r\n```\r\n\r\nAnd the generated html looks like:\r\n\r\n![screen shot 2015-09-25 at 12 01 13 copy](https://cloud.githubusercontent.com/assets/12640813/10098955/53b9b2a0-637d-11e5-8124-bbedfa18fe7b.jpg)\r\n\r\nI've noticed if I remove all the underscores in the examples, it works as expected, so must be an issue with the way it handles underscores in the parameters.\r\n\r\nMy aglio version is:\r\n`aglio 2.0.4`\r\n`olio 1.2.1`"},"comment":{"url":"https://api.github.com/repos/apiaryio/drafter/issues/comments/143224541","html_url":"https://github.com/apiaryio/drafter/issues/123#issuecomment-143224541","issue_url":"https://api.github.com/repos/apiaryio/drafter/issues/123","id":143224541,"user":{"login":"earnaway","id":12640813,"avatar_url":"https://avatars.githubusercontent.com/u/12640813?v=3","gravatar_id":"","url":"https://api.github.com/users/earnaway","html_url":"https://github.com/earnaway","followers_url":"https://api.github.com/users/earnaway/followers","following_url":"https://api.github.com/users/earnaway/following{/other_user}","gists_url":"https://api.github.com/users/earnaway/gists{/gist_id}","starred_url":"https://api.github.com/users/earnaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earnaway/subscriptions","organizations_url":"https://api.github.com/users/earnaway/orgs","repos_url":"https://api.github.com/users/earnaway/repos","events_url":"https://api.github.com/users/earnaway/events{/privacy}","received_events_url":"https://api.github.com/users/earnaway/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T13:33:17Z","updated_at":"2015-09-25T13:33:17Z","body":"I'm testing the underscores, and using this blueprint:\r\n\r\n```\r\nFORMAT: 1A\r\n\r\n# Test Doc\r\n\r\n# Group Tests\r\n\r\n# Test endpoint [/test{?status,order_by,sort,page,per_page}]\r\n\r\n+ Parameters\r\n    + status: paid (optional, string) - some test status\r\n    + `order_by`: transaction_date (optional, enum) - one of transaction_date, merchant_network_name, amount, user_commission, status\r\n    + sort: asc (optional, enum) - one of asc, desc\r\n    + page: 1 (optional, integer) - pagination parameter\r\n    + per_page: 5 (optional, integer) - pagination parameter\r\n\r\n### Fetch some data [GET]\r\n\r\n+ Response 204\r\n```\r\n\r\nwhich results in an output with warnings here:\r\nhttps://gist.github.com/earnaway/acc2e37b4c266411fe55\r\n\r\nMy command:\r\n`./node_modules/drafter/bin/drafter test.apib`"}}