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

ph.samson.atbp.confluence.model.CreatePageRequest.scala Maven / Gradle / Ivy

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

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

case class CreatePageRequest(
    spaceId: String,
    status: String,
    title: String,
    parentId: String,
    body: PageBodyWrite
)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy