Skip to content

Commit c010b56

Browse files
authored
Merge pull request #19 from codacy/webhook-description
Webhook description may be optional
2 parents 2f3febd + 3b261a0 commit c010b56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/com/codacy/client/bitbucket/Webhook.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.codacy.client.bitbucket
22

33
import play.api.libs.json.{Reads, Json, JsObject}
44

5-
case class Webhook(uuid:String,description:String,url:String,subject:JsObject,events:Set[String],active:Boolean,created_at:String,links:JsObject)
5+
case class Webhook(uuid:String,description:Option[String],url:String,subject:JsObject,events:Set[String],active:Boolean,created_at:String,links:JsObject)
66
object Webhook{
77
implicit val reads: Reads[Webhook] = Json.reads[Webhook].map{ case hook =>
88
hook.uuid match{
@@ -11,4 +11,4 @@ object Webhook{
1111
case _ => hook
1212
}
1313
}
14-
}
14+
}

0 commit comments

Comments
 (0)