{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/136","labels_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/136/comments","events_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/136/events","html_url":"https://github.com/spring-projects/spring-restdocs/issues/136","id":108167537,"number":136,"title":"Can't use attributes in snippets","user":{"login":"kpb","id":532490,"avatar_url":"https://avatars.githubusercontent.com/u/532490?v=3","gravatar_id":"","url":"https://api.github.com/users/kpb","html_url":"https://github.com/kpb","followers_url":"https://api.github.com/users/kpb/followers","following_url":"https://api.github.com/users/kpb/following{/other_user}","gists_url":"https://api.github.com/users/kpb/gists{/gist_id}","starred_url":"https://api.github.com/users/kpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpb/subscriptions","organizations_url":"https://api.github.com/users/kpb/orgs","repos_url":"https://api.github.com/users/kpb/repos","events_url":"https://api.github.com/users/kpb/events{/privacy}","received_events_url":"https://api.github.com/users/kpb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-24T16:38:29Z","updated_at":"2015-09-24T17:53:12Z","closed_at":"2015-09-24T17:53:12Z","body":"Maybe I'm just doing it wrong:\r\n\r\n```java\r\nthis.mockMvc.perform(get(\"/hello\"))\r\n                .andExpect(status().isOk())\r\n                .andDo(document(\"hello\", curlRequest(attributes(key(\"foo\").value(\"bar\")))));\r\n```\r\n\r\nand then in my curl-request.snippet\r\n```\r\nFoo is: {{foo}}\r\n```\r\nGives me a:\r\n```\r\norg.springframework.restdocs.mustache.MustacheException$Context: No method or field with name 'foo' on line 5\r\n```\r\nI have a small project with this test in it - but just noticed that github doesn't seem to support attaching an archive to an issue. Let me know if getting you a complete project would help.\r\n\r\n\r\n\r\n"}}