Skip to content

Commit

Permalink
Trigger release of backend apis
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarvelle committed Jan 17, 2025
1 parent eb15547 commit 14f567b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

package no.ndla.common.model.domain

import enumeratum._
import enumeratum.*
import no.ndla.common.errors.ValidationException

sealed abstract class ArticleType(override val entryName: String) extends EnumEntry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

package no.ndla.common.model.domain

import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}
import no.ndla.common.model.NDLADate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

package no.ndla.common.model.domain
import enumeratum._

import enumeratum.*
import no.ndla.common.errors.ValidationException

import scala.util.{Failure, Success, Try}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ object WordClass extends Enum[WordClass] with CirceEnum[WordClass] {
private val tsEnumValues: Seq[(String, String)] = values.map(e => e.toString -> e.entryName)
implicit val enumTsType: TSNamedType[WordClass] = TSType.alias[WordClass](
"WordClass",
TSEnum.string("WordClassEnum", tsEnumValues: _*)
TSEnum.string("WordClassEnum", tsEnumValues*)
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package no.ndla.common.model.domain.config

import com.scalatsi.{TSNamedType, TSType}
import com.scalatsi.TypescriptType.TSEnum
import enumeratum._
import enumeratum.*

sealed abstract class ConfigKey(override val entryName: String) extends EnumEntry

Expand All @@ -30,6 +30,6 @@ object ConfigKey extends Enum[ConfigKey] with CirceEnum[ConfigKey] {
private val tsEnumValues: Seq[(String, String)] = values.map(e => e.entryName -> e.entryName)
implicit val enumTsType: TSNamedType[ConfigKey] = TSType.alias(
"ConfigKey",
TSEnum.string("ConfigKeyEnum", tsEnumValues: _*)
TSEnum.string("ConfigKeyEnum", tsEnumValues*)
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package no.ndla.common.model.domain.draft

import com.scalatsi.TypescriptType.TSEnum
import com.scalatsi.{TSNamedType, TSType}
import enumeratum._
import enumeratum.*
import no.ndla.common.errors.ValidationException

import scala.util.{Failure, Success, Try}
Expand Down Expand Up @@ -55,6 +55,6 @@ object DraftStatus extends Enum[DraftStatus] with CirceEnum[DraftStatus] {
private val tsEnumValues: Seq[(String, String)] = values.map(e => e.toString -> e.entryName)
implicit val enumTsType: TSNamedType[DraftStatus] = TSType.alias[DraftStatus](
"DraftStatus",
TSEnum.string("DraftStatusEnum", tsEnumValues: _*)
TSEnum.string("DraftStatusEnum", tsEnumValues*)
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

package no.ndla.common.model.domain.draft

import enumeratum._
import enumeratum.*
import io.circe.{Decoder, Encoder}
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import no.ndla.common.model.NDLADate
Expand Down

0 comments on commit 14f567b

Please sign in to comment.