From c9b94e1c845ff663b2732e1101f704317ab05044 Mon Sep 17 00:00:00 2001 From: Jonas Natten Date: Mon, 9 Dec 2024 12:06:44 +0100 Subject: [PATCH] learningpath-api: Add `external` embed url to learningsteps --- .../ndla/common/model/domain/learningpath/EmbedUrl.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/src/main/scala/no/ndla/common/model/domain/learningpath/EmbedUrl.scala b/common/src/main/scala/no/ndla/common/model/domain/learningpath/EmbedUrl.scala index 6c1e3f2a8..613b0a923 100644 --- a/common/src/main/scala/no/ndla/common/model/domain/learningpath/EmbedUrl.scala +++ b/common/src/main/scala/no/ndla/common/model/domain/learningpath/EmbedUrl.scala @@ -29,9 +29,10 @@ sealed abstract class EmbedType(override val entryName: String) extends EnumEntr } object EmbedType extends Enum[EmbedType] with CirceEnum[EmbedType] { - case object OEmbed extends EmbedType("oembed") - case object LTI extends EmbedType("lti") - case object IFrame extends EmbedType("iframe") + case object OEmbed extends EmbedType("oembed") + case object LTI extends EmbedType("lti") + case object IFrame extends EmbedType("iframe") + case object External extends EmbedType("external") def valueOf(s: String): Option[EmbedType] = EmbedType.values.find(_.entryName == s) def valueOfOrDefault(s: String): EmbedType = valueOf(s).getOrElse(EmbedType.OEmbed)