Skip to content

Commit

Permalink
Make some Release fields optional (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFradet authored May 26, 2020
1 parent 7deed0c commit bf4fb40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions github4s/src/main/scala/github4s/domain/Repository.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ final case class Release(
draft: Boolean,
prerelease: Boolean,
created_at: String,
published_at: String,
published_at: Option[String],
author: Option[User],
url: String,
html_url: String,
assets_url: String,
upload_url: String,
tarball_url: String,
zipball_url: String
tarball_url: Option[String],
zipball_url: Option[String]
)

final case class Content(
Expand Down
6 changes: 3 additions & 3 deletions github4s/src/test/scala/github4s/utils/TestData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,14 @@ trait TestData {
draft = false,
prerelease = false,
created_at = "2011-04-10T20:09:31Z",
published_at = "2011-04-10T20:09:31Z",
published_at = Some("2011-04-10T20:09:31Z"),
author = Some(user),
url = githubApiUrl,
html_url = githubApiUrl,
assets_url = githubApiUrl,
upload_url = githubApiUrl,
tarball_url = githubApiUrl,
zipball_url = githubApiUrl
tarball_url = Some(githubApiUrl),
zipball_url = Some(githubApiUrl)
)

val content = Content(
Expand Down

0 comments on commit bf4fb40

Please sign in to comment.