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

caliban.GraphQLWSOutput.scala Maven / Gradle / Ivy

The newest version!
package caliban

import caliban.interop.tapir.IsTapirSchema
import com.github.plokhotnyuk.jsoniter_scala.core._
import com.github.plokhotnyuk.jsoniter_scala.macros._

case class GraphQLWSOutput(`type`: String, id: Option[String], payload: Option[ResponseValue])

object GraphQLWSOutput {
  private[caliban] implicit val jsoniterCodec: JsonValueCodec[GraphQLWSOutput] = JsonCodecMaker.make

  implicit def tapirSchema[F[_]: IsTapirSchema]: F[GraphQLWSOutput] =
    caliban.interop.tapir.schema.wsOutputSchema.asInstanceOf[F[GraphQLWSOutput]]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy