-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated field as it should be added later once its design i…
…s refined
- Loading branch information
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
lib/scala/editions/src/main/scala/org/enso/editions/repository/Manifest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.enso.editions.repository | ||
|
||
import io.circe._ | ||
|
||
case class Manifest(editions: Seq[String]) | ||
|
||
object Manifest { | ||
object Fields { | ||
val editions = "editions" | ||
} | ||
|
||
implicit val decoder: Decoder[Manifest] = { json => | ||
for { | ||
editions <- json.get[Seq[String]](Fields.editions) | ||
} yield Manifest(editions) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters