smithy4s.kinesis4cats.kcl.http4s.generated.Response.scala Maven / Gradle / Ivy
The newest version!
package kinesis4cats.kcl.http4s.generated
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.string
import smithy4s.schema.Schema.struct
final case class Response(message: String)
object Response extends ShapeTag.Companion[Response] {
val id: ShapeId = ShapeId("kinesis4cats.kcl.http4s.generated", "Response")
val hints: Hints = Hints.empty
// constructor using the original order from the spec
private def make(message: String): Response = Response(message)
implicit val schema: Schema[Response] = struct(
string.required[Response]("message", _.message),
)(make).withId(id).addHints(hints)
}