All Downloads are FREE. Search and download functionalities are using the official Maven repository.

models.IssueKey.scala Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
package io.gitlab.mateuszjaje.jiraclient
package models

import io.circe.{Decoder, Encoder}

case class IssueKey(value: String) extends AnyVal {
  override def toString = value
}

object IssueKey {
  implicit val encoder: Encoder[IssueKey] = Encoder.encodeString.contramap[IssueKey](_.value)
  implicit val decoder: Decoder[IssueKey] = Decoder.decodeString.map(IssueKey(_))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy