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

io.github.quafadas.dairect.ImageFile.scala Maven / Gradle / Ivy

The newest version!
package io.github.quafadas.dairect

import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.struct

final case class ImageFile(image_file: ImageDetails)

object ImageFile extends ShapeTag.Companion[ImageFile] {
  val id: ShapeId = ShapeId("io.github.quafadas.dairect", "ImageFile")

  val hints: Hints = Hints.empty

  // constructor using the original order from the spec
  private def make(image_file: ImageDetails): ImageFile = ImageFile(image_file)

  implicit val schema: Schema[ImageFile] = struct(
    ImageDetails.schema.required[ImageFile]("image_file", _.image_file),
  )(make).withId(id).addHints(hints)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy