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

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

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 ImageUrl(image_url: ImageUrlDetails)

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

  val hints: Hints = Hints.empty

  // constructor using the original order from the spec
  private def make(image_url: ImageUrlDetails): ImageUrl = ImageUrl(image_url)

  implicit val schema: Schema[ImageUrl] = struct(
    ImageUrlDetails.schema.required[ImageUrl]("image_url", _.image_url),
  )(make).withId(id).addHints(hints)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy