{"action":"created","issue":{"url":"https://api.github.com/repos/iheartradio/play-swagger/issues/67","repository_url":"https://api.github.com/repos/iheartradio/play-swagger","labels_url":"https://api.github.com/repos/iheartradio/play-swagger/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/iheartradio/play-swagger/issues/67/comments","events_url":"https://api.github.com/repos/iheartradio/play-swagger/issues/67/events","html_url":"https://github.com/iheartradio/play-swagger/issues/67","id":140189689,"number":67,"title":"Parse definitions in route files","user":{"login":"herbakamil","id":17064705,"avatar_url":"https://avatars.githubusercontent.com/u/17064705?v=3","gravatar_id":"","url":"https://api.github.com/users/herbakamil","html_url":"https://github.com/herbakamil","followers_url":"https://api.github.com/users/herbakamil/followers","following_url":"https://api.github.com/users/herbakamil/following{/other_user}","gists_url":"https://api.github.com/users/herbakamil/gists{/gist_id}","starred_url":"https://api.github.com/users/herbakamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herbakamil/subscriptions","organizations_url":"https://api.github.com/users/herbakamil/orgs","repos_url":"https://api.github.com/users/herbakamil/repos","events_url":"https://api.github.com/users/herbakamil/events{/privacy}","received_events_url":"https://api.github.com/users/herbakamil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T13:56:29Z","updated_at":"2016-03-11T15:27:06Z","closed_at":null,"body":"It would be nice to parse definitions in route files in the form like below:\r\n\r\n`###`\r\n`#  definitions:`\r\n`#    LoginRequest:`\r\n`#      type: object`\r\n`#      required:`\r\n`#        - certificate`\r\n`#      properties:`\r\n`#        certificate:`\r\n`#          $ref: '#/definitions/Certificate'`\r\n`#    LoginResponse:`\r\n`#      type: object`\r\n`#      required:`\r\n`#        - token`\r\n`#      properties:`\r\n`#        token:`\r\n`#          $ref: '#/definitions/Token'`\r\nplay-swagger is being used also in Java projects where we don't have case classes so it'd be nice to allow definitions parsing.\r\n\r\nDo you plan to support it? If yes when?"},"comment":{"url":"https://api.github.com/repos/iheartradio/play-swagger/issues/comments/195413111","html_url":"https://github.com/iheartradio/play-swagger/issues/67#issuecomment-195413111","issue_url":"https://api.github.com/repos/iheartradio/play-swagger/issues/67","id":195413111,"user":{"login":"kailuowang","id":83257,"avatar_url":"https://avatars.githubusercontent.com/u/83257?v=3","gravatar_id":"","url":"https://api.github.com/users/kailuowang","html_url":"https://github.com/kailuowang","followers_url":"https://api.github.com/users/kailuowang/followers","following_url":"https://api.github.com/users/kailuowang/following{/other_user}","gists_url":"https://api.github.com/users/kailuowang/gists{/gist_id}","starred_url":"https://api.github.com/users/kailuowang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kailuowang/subscriptions","organizations_url":"https://api.github.com/users/kailuowang/orgs","repos_url":"https://api.github.com/users/kailuowang/repos","events_url":"https://api.github.com/users/kailuowang/events{/privacy}","received_events_url":"https://api.github.com/users/kailuowang/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T15:27:06Z","updated_at":"2016-03-11T15:27:06Z","body":"for anything that play-swagger doesn't provide, you can write it in the swagger.yml file. The core team doesn't have plan to write java class parsing any time soon but any contribution is more than welcome. "}}