{"action":"created","issue":{"url":"https://api.github.com/repos/jooby-project/jooby/issues/378","repository_url":"https://api.github.com/repos/jooby-project/jooby","labels_url":"https://api.github.com/repos/jooby-project/jooby/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/jooby-project/jooby/issues/378/comments","events_url":"https://api.github.com/repos/jooby-project/jooby/issues/378/events","html_url":"https://github.com/jooby-project/jooby/issues/378","id":155594655,"number":378,"title":"Swagger and Raml not working properly","user":{"login":"abitwise","id":10587917,"avatar_url":"https://avatars.githubusercontent.com/u/10587917?v=3","gravatar_id":"","url":"https://api.github.com/users/abitwise","html_url":"https://github.com/abitwise","followers_url":"https://api.github.com/users/abitwise/followers","following_url":"https://api.github.com/users/abitwise/following{/other_user}","gists_url":"https://api.github.com/users/abitwise/gists{/gist_id}","starred_url":"https://api.github.com/users/abitwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abitwise/subscriptions","organizations_url":"https://api.github.com/users/abitwise/orgs","repos_url":"https://api.github.com/users/abitwise/repos","events_url":"https://api.github.com/users/abitwise/events{/privacy}","received_events_url":"https://api.github.com/users/abitwise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-18T20:32:02Z","updated_at":"2016-05-18T21:30:06Z","closed_at":null,"body":"I tried to create API using Jooby, we have non-functional requirement to have Swagger or Raml for our APIs. For some reason Swagger and Raml are not working and no UI is displayed and it does not give out any errors. Looks like there are no definitions when looking at swagger.json, but definitions are there in /raml/api.raml.\r\n\r\nI made very simple api to illustrate the problem: [jooby-cat](https://github.com/abitwise/jooby-cat)"},"comment":{"url":"https://api.github.com/repos/jooby-project/jooby/issues/comments/220164143","html_url":"https://github.com/jooby-project/jooby/issues/378#issuecomment-220164143","issue_url":"https://api.github.com/repos/jooby-project/jooby/issues/378","id":220164143,"user":{"login":"abitwise","id":10587917,"avatar_url":"https://avatars.githubusercontent.com/u/10587917?v=3","gravatar_id":"","url":"https://api.github.com/users/abitwise","html_url":"https://github.com/abitwise","followers_url":"https://api.github.com/users/abitwise/followers","following_url":"https://api.github.com/users/abitwise/following{/other_user}","gists_url":"https://api.github.com/users/abitwise/gists{/gist_id}","starred_url":"https://api.github.com/users/abitwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abitwise/subscriptions","organizations_url":"https://api.github.com/users/abitwise/orgs","repos_url":"https://api.github.com/users/abitwise/repos","events_url":"https://api.github.com/users/abitwise/events{/privacy}","received_events_url":"https://api.github.com/users/abitwise/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T21:30:06Z","updated_at":"2016-05-18T21:30:06Z","body":"Looks like it generates Swagger definition when I add this line inside get call: Cat cat = req.body().to(Cat.class);\r\n(and change next one to cat = new Cat();)\r\nAlthough this would render the API to non-working one, but it may help."}}