com.chatwork.scala.jwk.URIJsonImplicits.scala Maven / Gradle / Ivy
package com.chatwork.scala.jwk
import java.net.URI
import io.circe.{ Decoder, Encoder }
trait URIJsonImplicits {
implicit val UriJsonEncoder: Encoder[URI] = Encoder[String].contramap(_.toString)
implicit val UriJsonDecoder: Decoder[URI] = Decoder[String].map(URI.create)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy