Skip to content

Commit 72dd2ca

Browse files
mfirryjuanpedromoreno
authored andcommitted
Adding missing fields to User (#250)
* "followers_url" and "following_url" fields added to User * minor * Added type, hirable and public_repos * minor: public_repos is now an Option * fixing TestData (and defaulting some fields)
1 parent cad664b commit 72dd2ca

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • github4s/shared/src/main/scala/github4s/free/domain

github4s/shared/src/main/scala/github4s/free/domain/User.scala

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,10 @@ case class User(
2626
company: Option[String] = None,
2727
blog: Option[String] = None,
2828
location: Option[String] = None,
29-
bio: Option[String] = None
30-
)
29+
bio: Option[String] = None,
30+
followers_url: Option[String] = None,
31+
following_url: Option[String] = None,
32+
`type`: String = "User", // I think this can be either "User" or "Organization"
33+
hireable: Option[Boolean] = None,
34+
public_repos: Option[Int] = None
35+
)

0 commit comments

Comments
 (0)