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

ph.samson.atbp.jira.model.SearchRequest.scala Maven / Gradle / Ivy

The newest version!
package ph.samson.atbp.jira.model

import zio.schema.DeriveSchema
import zio.schema.Schema
import zio.schema.codec.BinaryCodec
import zio.schema.codec.JsonCodec

case class SearchRequest(
    jql: String,
    fields: List[String],
    maxResults: Int = 50,
    startAt: Int = 0
)

object SearchRequest {
  implicit val schema: Schema[SearchRequest] = DeriveSchema.gen
  implicit val codec: BinaryCodec[SearchRequest] =
    JsonCodec.schemaBasedBinaryCodec
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy