{"action":"closed","issue":{"url":"https://api.github.com/repos/apiaryio/dredd/issues/872","repository_url":"https://api.github.com/repos/apiaryio/dredd","labels_url":"https://api.github.com/repos/apiaryio/dredd/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/dredd/issues/872/comments","events_url":"https://api.github.com/repos/apiaryio/dredd/issues/872/events","html_url":"https://github.com/apiaryio/dredd/issues/872","id":251652187,"number":872,"title":"dredd is ignoring default value for enum type parameter and failing validation","user":{"login":"karpilin","id":7241115,"avatar_url":"https://avatars2.githubusercontent.com/u/7241115?v=4","gravatar_id":"","url":"https://api.github.com/users/karpilin","html_url":"https://github.com/karpilin","followers_url":"https://api.github.com/users/karpilin/followers","following_url":"https://api.github.com/users/karpilin/following{/other_user}","gists_url":"https://api.github.com/users/karpilin/gists{/gist_id}","starred_url":"https://api.github.com/users/karpilin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karpilin/subscriptions","organizations_url":"https://api.github.com/users/karpilin/orgs","repos_url":"https://api.github.com/users/karpilin/repos","events_url":"https://api.github.com/users/karpilin/events{/privacy}","received_events_url":"https://api.github.com/users/karpilin/received_events","type":"User","site_admin":false},"labels":[{"id":54947485,"url":"https://api.github.com/repos/apiaryio/dredd/labels/bug","name":"bug","color":"d93f0b","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-08-21T12:58:41Z","updated_at":"2017-08-23T14:07:13Z","closed_at":"2017-08-23T14:07:13Z","body":"#### Describe your problem\r\n\r\nDredd is failing API Blueprint validation if there is an enum type parameter on the endpoint. Default value is ignored. Apiary validation is working fine.\r\n\r\nfor example:\r\n```\r\n# Group Example\r\n## Endpoint [GET /example{?type}]\r\n\r\n+ Parameters\r\n    + type: `foo` (enum[string], optional)\r\n        + Members\r\n            + `foo`\r\n            + `bar`\r\n\r\n+ Response 200 (application/json)\r\n    + Attributes\r\n        + data: `some string` (string, required)\r\n```\r\n\r\nthrowing out the following error:\r\n```\r\nerror: Compilation error in file 'example.apib': URI parameter 'type' example value is not one of enum values. (Example > Endpoint > Endpoint)\r\n```\r\n\r\n#### What's your `dredd --version` output?\r\n\r\n```\r\ndredd v4.3.0 (Darwin 16.7.0; x64)\r\n```\r\n\r\n"}}
{"actor":{"display_login":"michalholasek"}}