alloy.UncheckedExample.scala Maven / Gradle / Ivy
package alloy
import smithy4s.Document
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.document
import smithy4s.schema.Schema.string
import smithy4s.schema.Schema.struct
final case class UncheckedExample(title: String, documentation: Option[String] = None, input: Option[Document] = None, output: Option[Document] = None)
object UncheckedExample extends ShapeTag.Companion[UncheckedExample] {
val id: ShapeId = ShapeId("alloy", "UncheckedExample")
val hints: Hints = Hints(
smithy.api.Private(),
)
implicit val schema: Schema[UncheckedExample] = struct(
string.required[UncheckedExample]("title", _.title),
string.optional[UncheckedExample]("documentation", _.documentation),
document.optional[UncheckedExample]("input", _.input),
document.optional[UncheckedExample]("output", _.output),
){
UncheckedExample.apply
}.withId(id).addHints(hints)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy