{"action":"opened","issue":{"url":"https://api.github.com/repos/Codearte/accurest/issues/82","labels_url":"https://api.github.com/repos/Codearte/accurest/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/Codearte/accurest/issues/82/comments","events_url":"https://api.github.com/repos/Codearte/accurest/issues/82/events","html_url":"https://github.com/Codearte/accurest/issues/82","id":88227296,"number":82,"title":"Request body with a nested list results in a bad test","user":{"login":"marcingrzejszczak","id":3297437,"avatar_url":"https://avatars.githubusercontent.com/u/3297437?v=3","gravatar_id":"","url":"https://api.github.com/users/marcingrzejszczak","html_url":"https://github.com/marcingrzejszczak","followers_url":"https://api.github.com/users/marcingrzejszczak/followers","following_url":"https://api.github.com/users/marcingrzejszczak/following{/other_user}","gists_url":"https://api.github.com/users/marcingrzejszczak/gists{/gist_id}","starred_url":"https://api.github.com/users/marcingrzejszczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcingrzejszczak/subscriptions","organizations_url":"https://api.github.com/users/marcingrzejszczak/orgs","repos_url":"https://api.github.com/users/marcingrzejszczak/repos","events_url":"https://api.github.com/users/marcingrzejszczak/events{/privacy}","received_events_url":"https://api.github.com/users/marcingrzejszczak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codearte/accurest/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Codearte/accurest/milestones/14","html_url":"https://github.com/Codearte/accurest/milestones/0.6.6","labels_url":"https://api.github.com/repos/Codearte/accurest/milestones/14/labels","id":1162060,"number":14,"title":"0.6.6","description":null,"creator":{"login":"marcingrzejszczak","id":3297437,"avatar_url":"https://avatars.githubusercontent.com/u/3297437?v=3","gravatar_id":"","url":"https://api.github.com/users/marcingrzejszczak","html_url":"https://github.com/marcingrzejszczak","followers_url":"https://api.github.com/users/marcingrzejszczak/followers","following_url":"https://api.github.com/users/marcingrzejszczak/following{/other_user}","gists_url":"https://api.github.com/users/marcingrzejszczak/gists{/gist_id}","starred_url":"https://api.github.com/users/marcingrzejszczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcingrzejszczak/subscriptions","organizations_url":"https://api.github.com/users/marcingrzejszczak/orgs","repos_url":"https://api.github.com/users/marcingrzejszczak/repos","events_url":"https://api.github.com/users/marcingrzejszczak/events{/privacy}","received_events_url":"https://api.github.com/users/marcingrzejszczak/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-06-12T14:24:56Z","updated_at":"2015-06-14T18:25:15Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-06-14T18:25:15Z","updated_at":"2015-06-14T18:25:15Z","closed_at":null,"body":"DSL:\r\n\r\n```\r\nio.codearte.accurest.dsl.GroovyDsl.make {\r\n    request {\r\n        method 'POST'\r\n        url '/ingredients'\r\n        headers {\r\n            header 'Content-Type': 'application/vnd.pl.devoxx.aggregatr.v1+json'\r\n        }\r\n        body(\r\n                items: ['HOP']\r\n        )\r\n    }\r\n    response {\r\n        status 200\r\n        body(\r\n            ingredients: [\r\n                    [type: 'HOP', quantity: 200]\r\n            ]\r\n        )\r\n    }\r\n}\r\n```\r\n\r\nGenerated test:\r\n\r\n```\r\ndef shouldGetHop() {\r\n\t\tgiven:\r\n\t\t\tdef request = given()\r\n\t\t\t\t\t.header('Content-Type', 'application/vnd.pl.devoxx.aggregatr.v1+json')\r\n\t\t\t\t\t.body('{\"items\":[{\"serverValue\":\"HOP\",\"clientValue\":\"HOP\"}]}')\r\n\r\n\t\twhen:\r\n\t\t\tdef response = given().spec(request)\r\n\t\t\t\t\t.post(\"/ingredients\")\r\n\r\n\t\tthen:\r\n\t\t\tresponse.statusCode == 200\r\n\t\tand:\r\n\t\t\tdef responseBody = new JsonSlurper().parseText(response.body.asString())\r\n\t\t\tresponseBody.ingredients[0].type == \"HOP\"\r\n\t\t\tresponseBody.ingredients[0].quantity == 200\r\n\t}\r\n```"}}