{"action":"closed","issue":{"url":"https://api.github.com/repos/Codearte/accurest/issues/105","labels_url":"https://api.github.com/repos/Codearte/accurest/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/Codearte/accurest/issues/105/comments","events_url":"https://api.github.com/repos/Codearte/accurest/issues/105/events","html_url":"https://github.com/Codearte/accurest/issues/105","id":93528402,"number":105,"title":"Different logic used to analyse DSL for stubs and tests","user":{"login":"OlgaMaciaszek","id":4328892,"avatar_url":"https://avatars.githubusercontent.com/u/4328892?v=3","gravatar_id":"","url":"https://api.github.com/users/OlgaMaciaszek","html_url":"https://github.com/OlgaMaciaszek","followers_url":"https://api.github.com/users/OlgaMaciaszek/followers","following_url":"https://api.github.com/users/OlgaMaciaszek/following{/other_user}","gists_url":"https://api.github.com/users/OlgaMaciaszek/gists{/gist_id}","starred_url":"https://api.github.com/users/OlgaMaciaszek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlgaMaciaszek/subscriptions","organizations_url":"https://api.github.com/users/OlgaMaciaszek/orgs","repos_url":"https://api.github.com/users/OlgaMaciaszek/repos","events_url":"https://api.github.com/users/OlgaMaciaszek/events{/privacy}","received_events_url":"https://api.github.com/users/OlgaMaciaszek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codearte/accurest/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-07T13:16:49Z","updated_at":"2015-10-03T08:05:45Z","closed_at":"2015-10-03T08:05:45Z","body":"The groovy DSL files are being analysed independently while creating stubs and tests which results in incoherent outputs. For example, such a script:\r\n\r\n```groovy\r\nio.codearte.accurest.dsl.GroovyDsl.make {\r\n request {\r\n  method('POST')\r\n  url(\"test\")\r\n  headers {\r\n   header(\"Content-Type\": \"application/json\")\r\n  }\r\n  body(\"\")\r\n }\r\n\r\n response {\r\n  status 406\r\n }\r\n}\r\n```\r\n\r\nwill have the content type evaluated as JSON for the stub and as UNKNOWN for the test.\r\n\r\nThere should be a coherent way of processing DSLs both for tests and for stubs."}}