{"action":"created","issue":{"url":"https://api.github.com/repos/nidi3/raml-tester-proxy/issues/23","labels_url":"https://api.github.com/repos/nidi3/raml-tester-proxy/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/nidi3/raml-tester-proxy/issues/23/comments","events_url":"https://api.github.com/repos/nidi3/raml-tester-proxy/issues/23/events","html_url":"https://github.com/nidi3/raml-tester-proxy/issues/23","id":93675272,"number":23,"title":"body schema not being checked?","user":{"login":"bpytlik","id":3046653,"avatar_url":"https://avatars.githubusercontent.com/u/3046653?v=3","gravatar_id":"","url":"https://api.github.com/users/bpytlik","html_url":"https://github.com/bpytlik","followers_url":"https://api.github.com/users/bpytlik/followers","following_url":"https://api.github.com/users/bpytlik/following{/other_user}","gists_url":"https://api.github.com/users/bpytlik/gists{/gist_id}","starred_url":"https://api.github.com/users/bpytlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpytlik/subscriptions","organizations_url":"https://api.github.com/users/bpytlik/orgs","repos_url":"https://api.github.com/users/bpytlik/repos","events_url":"https://api.github.com/users/bpytlik/events{/privacy}","received_events_url":"https://api.github.com/users/bpytlik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-08T02:30:00Z","updated_at":"2015-07-08T22:10:29Z","closed_at":null,"body":"If my raml file says that the response body should be json and contain a field named \"name\", but the response contains a field named \"bah\", I would expect some kind of error. I do not seem to get any error reported on the example below.\r\n\r\ntest_api.raml:\r\n```\r\n#%RAML 0.8\r\n---\r\ntitle: Test\r\n\r\nprotocols: [ HTTP ]\r\n\r\nmediaType: application/json\r\n\r\n\r\n/bar:\r\n  description: Collection of available foo.\r\n  get:\r\n    description: Retrieve a list of foo.\r\n    responses:\r\n      200:\r\n        body:\r\n          application/json:\r\n            schema: |\r\n              {\r\n                \"type\": \"object\",\r\n                \"$schema\": \"http://json-schema.org/draft-04/schema\",\r\n                \"required\": true,\r\n                \"properties\": {\r\n                  \"name\": {\r\n                    \"type\": \"string\",\r\n                    \"required\": \"true\",\r\n                    \"description\": \"foo\"\r\n                  }\r\n                }\r\n              }\r\n```\r\n\r\nraml-tester invocation:\r\n```\r\n$ java -jar ./dev_deps/node_modules/raml-tester/bin/raml-tester-standalone.jar -thttp://localhost:25001 -rfile:///<path>/test_api.raml -s./ -p25099\r\n```\r\n\r\nCurl command:\r\n```\r\n$ curl -vk http://localhost:25099/bar\r\n* About to connect() to localhost port 25099 (#0)\r\n*   Trying ::1... connected\r\n* Connected to localhost (::1) port 25099 (#0)\r\n> GET /bar HTTP/1.1\r\n> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.6.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2\r\n> Host: localhost:25099\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 200 OK\r\n< Date: Wed, 08 Jul 2015 02:26:23 GMT\r\n< X-Powered-By: Express\r\n< Content-Type: application/json; charset=UTF-8\r\n< ETag: W/\"d-/tQQNPixBTieCt8Z22DyUw\"\r\n< X-Response-Time: 11.162ms\r\n< Date: Wed, 08 Jul 2015 02:26:23 GMT\r\n< Content-Length: 13\r\n< Server: Jetty(9.2.z-SNAPSHOT)\r\n< \r\n* Connection #0 to host localhost left intact\r\n* Closing connection #0\r\n{\"bah\":\"foo\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/nidi3/raml-tester-proxy/issues/comments/119746200","html_url":"https://github.com/nidi3/raml-tester-proxy/issues/23#issuecomment-119746200","issue_url":"https://api.github.com/repos/nidi3/raml-tester-proxy/issues/23","id":119746200,"user":{"login":"nidi3","id":668297,"avatar_url":"https://avatars.githubusercontent.com/u/668297?v=3","gravatar_id":"","url":"https://api.github.com/users/nidi3","html_url":"https://github.com/nidi3","followers_url":"https://api.github.com/users/nidi3/followers","following_url":"https://api.github.com/users/nidi3/following{/other_user}","gists_url":"https://api.github.com/users/nidi3/gists{/gist_id}","starred_url":"https://api.github.com/users/nidi3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nidi3/subscriptions","organizations_url":"https://api.github.com/users/nidi3/orgs","repos_url":"https://api.github.com/users/nidi3/repos","events_url":"https://api.github.com/users/nidi3/events{/privacy}","received_events_url":"https://api.github.com/users/nidi3/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T22:10:29Z","updated_at":"2015-07-08T22:10:29Z","body":"ctrl-c should also work... having a look at it tomorrow."}}