Skip to content

Commit

Permalink
Merge pull request #441 from NDLANO/fix-learningstep-type-serializing
Browse files Browse the repository at this point in the history
Override toString to fix api
  • Loading branch information
gunnarvelle authored Mar 26, 2024
2 parents 3e17cd6 + 482ba29 commit aebd488
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ object EmbedUrl {
implicit val decoder: Decoder[EmbedUrl] = deriveDecoder
}

sealed abstract class EmbedType(override val entryName: String) extends EnumEntry {}
sealed abstract class EmbedType(override val entryName: String) extends EnumEntry {
override def toString: String = entryName
}

object EmbedType extends Enum[EmbedType] with CirceEnum[EmbedType] {
case object OEmbed extends EmbedType("oembed")
Expand Down

0 comments on commit aebd488

Please sign in to comment.