{"action":"created","comment":{"url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments/72211126","id":72211126,"diff_hunk":"@@ -0,0 +1,112 @@\n+package codacy.docker.api\n+\n+import play.api.libs.json._\n+\n+trait JsonApi {\n+\n+  def enumWrites[E <: Enumeration#Value]: Writes[E] = Writes((e: E) => Json.toJson(e.toString))\n+\n+  def enumReads[E <: Enumeration](e: E): Reads[e.Value] = {\n+    Reads.StringReads.flatMap { case value => Reads((_: JsValue) =>\n+      e.values.collectFirst { case enumValue if enumValue.toString == value =>\n+        JsSuccess(enumValue)\n+      }.getOrElse(JsError(s\"Invalid enumeration value $value\"))\n+    )\n+    }\n+  }\n+\n+  implicit lazy val parameterValueFormat: Format[Parameter.Value] = Format(\n+    implicitly[Reads[String]].map(Parameter.Value.apply) orElse\n+      implicitly[Reads[BigDecimal]].map(Parameter.Value.apply) orElse\n+      implicitly[Reads[Boolean]].map(Parameter.Value.apply) orElse\n+      JsPath.lazyRead(Reads.list(parameterValueFormat).map(Parameter.Value.apply)),\n+    Writes((_: Parameter.Value) match {","path":"src/main/scala/codacy/docker/api/JsonApi.scala","position":23,"original_position":23,"commit_id":"f1e52652bd4067e5565dbed1c6fb40ada4bc9706","original_commit_id":"f1e52652bd4067e5565dbed1c6fb40ada4bc9706","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Default case not specified.](https://www.codacy.com/app/Codacy/codacy-plugins-test/file/3080495245/issues/source?bid=2836238&fileBranchId=3469057#l23)","created_at":"2016-07-26T08:54:06Z","updated_at":"2016-07-26T08:54:06Z","html_url":"https://github.com/codacy/codacy-plugins-test/pull/16#discussion_r72211126","pull_request_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments/72211126"},"html":{"href":"https://github.com/codacy/codacy-plugins-test/pull/16#discussion_r72211126"},"pull_request":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/16","id":78812921,"html_url":"https://github.com/codacy/codacy-plugins-test/pull/16","diff_url":"https://github.com/codacy/codacy-plugins-test/pull/16.diff","patch_url":"https://github.com/codacy/codacy-plugins-test/pull/16.patch","issue_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/16","number":16,"state":"open","locked":false,"title":"Use the shared interface","user":{"login":"johannegger","id":7631765,"avatar_url":"https://avatars.githubusercontent.com/u/7631765?v=3","gravatar_id":"","url":"https://api.github.com/users/johannegger","html_url":"https://github.com/johannegger","followers_url":"https://api.github.com/users/johannegger/followers","following_url":"https://api.github.com/users/johannegger/following{/other_user}","gists_url":"https://api.github.com/users/johannegger/gists{/gist_id}","starred_url":"https://api.github.com/users/johannegger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannegger/subscriptions","organizations_url":"https://api.github.com/users/johannegger/orgs","repos_url":"https://api.github.com/users/johannegger/repos","events_url":"https://api.github.com/users/johannegger/events{/privacy}","received_events_url":"https://api.github.com/users/johannegger/received_events","type":"User","site_admin":false},"body":"for details please check jira or ask me","created_at":"2016-07-26T08:46:52Z","updated_at":"2016-07-26T08:54:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8cddd691d40d08851bb77fc1086e55f64f104aa1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/16/commits","review_comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/16/comments","review_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/16/comments","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/f1e52652bd4067e5565dbed1c6fb40ada4bc9706","head":{"label":"codacy:FT-2091","ref":"FT-2091","sha":"f1e52652bd4067e5565dbed1c6fb40ada4bc9706","user":{"login":"codacy","id":1834093,"avatar_url":"https://avatars.githubusercontent.com/u/1834093?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"repo":{"id":39913866,"name":"codacy-plugins-test","full_name":"codacy/codacy-plugins-test","owner":{"login":"codacy","id":1834093,"avatar_url":"https://avatars.githubusercontent.com/u/1834093?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codacy/codacy-plugins-test","description":"Testing interface for external docker tools","fork":false,"url":"https://api.github.com/repos/codacy/codacy-plugins-test","forks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/forks","keys_url":"https://api.github.com/repos/codacy/codacy-plugins-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codacy/codacy-plugins-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codacy/codacy-plugins-test/teams","hooks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/hooks","issue_events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/events{/number}","events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/events","assignees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/assignees{/user}","branches_url":"https://api.github.com/repos/codacy/codacy-plugins-test/branches{/branch}","tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/tags","blobs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/{sha}","languages_url":"https://api.github.com/repos/codacy/codacy-plugins-test/languages","stargazers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/stargazers","contributors_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contributors","subscribers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscribers","subscription_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscription","commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contents/{+path}","compare_url":"https://api.github.com/repos/codacy/codacy-plugins-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codacy/codacy-plugins-test/merges","archive_url":"https://api.github.com/repos/codacy/codacy-plugins-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codacy/codacy-plugins-test/downloads","issues_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues{/number}","pulls_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls{/number}","milestones_url":"https://api.github.com/repos/codacy/codacy-plugins-test/milestones{/number}","notifications_url":"https://api.github.com/repos/codacy/codacy-plugins-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codacy/codacy-plugins-test/labels{/name}","releases_url":"https://api.github.com/repos/codacy/codacy-plugins-test/releases{/id}","deployments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/deployments","created_at":"2015-07-29T20:09:49Z","updated_at":"2016-02-04T14:15:44Z","pushed_at":"2016-07-26T08:52:35Z","git_url":"git://github.com/codacy/codacy-plugins-test.git","ssh_url":"git@github.com:codacy/codacy-plugins-test.git","clone_url":"https://github.com/codacy/codacy-plugins-test.git","svn_url":"https://github.com/codacy/codacy-plugins-test","homepage":"","size":64,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"codacy:master","ref":"master","sha":"410f5811f9d58d6f3178e0e17a7b8f3db90711bc","user":{"login":"codacy","id":1834093,"avatar_url":"https://avatars.githubusercontent.com/u/1834093?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"repo":{"id":39913866,"name":"codacy-plugins-test","full_name":"codacy/codacy-plugins-test","owner":{"login":"codacy","id":1834093,"avatar_url":"https://avatars.githubusercontent.com/u/1834093?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codacy/codacy-plugins-test","description":"Testing interface for external docker tools","fork":false,"url":"https://api.github.com/repos/codacy/codacy-plugins-test","forks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/forks","keys_url":"https://api.github.com/repos/codacy/codacy-plugins-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codacy/codacy-plugins-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codacy/codacy-plugins-test/teams","hooks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/hooks","issue_events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/events{/number}","events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/events","assignees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/assignees{/user}","branches_url":"https://api.github.com/repos/codacy/codacy-plugins-test/branches{/branch}","tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/tags","blobs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/{sha}","languages_url":"https://api.github.com/repos/codacy/codacy-plugins-test/languages","stargazers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/stargazers","contributors_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contributors","subscribers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscribers","subscription_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscription","commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contents/{+path}","compare_url":"https://api.github.com/repos/codacy/codacy-plugins-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codacy/codacy-plugins-test/merges","archive_url":"https://api.github.com/repos/codacy/codacy-plugins-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codacy/codacy-plugins-test/downloads","issues_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues{/number}","pulls_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls{/number}","milestones_url":"https://api.github.com/repos/codacy/codacy-plugins-test/milestones{/number}","notifications_url":"https://api.github.com/repos/codacy/codacy-plugins-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codacy/codacy-plugins-test/labels{/name}","releases_url":"https://api.github.com/repos/codacy/codacy-plugins-test/releases{/id}","deployments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/deployments","created_at":"2015-07-29T20:09:49Z","updated_at":"2016-02-04T14:15:44Z","pushed_at":"2016-07-26T08:52:35Z","git_url":"git://github.com/codacy/codacy-plugins-test.git","ssh_url":"git@github.com:codacy/codacy-plugins-test.git","clone_url":"https://github.com/codacy/codacy-plugins-test.git","svn_url":"https://github.com/codacy/codacy-plugins-test","homepage":"","size":64,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/16"},"html":{"href":"https://github.com/codacy/codacy-plugins-test/pull/16"},"issue":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/16"},"comments":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/f1e52652bd4067e5565dbed1c6fb40ada4bc9706"}}}}
{"actor":{"display_login":"codacy-bot"}}