alloy.UuidFormat.scala Maven / Gradle / Ivy
package alloy
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** UUID v4 compliant with [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122) */
final case class UuidFormat()
object UuidFormat extends ShapeTag.Companion[UuidFormat] {
val id: ShapeId = ShapeId("alloy", "uuidFormat")
val hints: Hints = Hints(
smithy.api.Documentation("UUID v4 compliant with [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122)"),
smithy.api.Trait(selector = Some("string"), structurallyExclusive = None, conflicts = None, breakingChanges = None),
).lazily
implicit val schema: Schema[UuidFormat] = constant(UuidFormat()).withId(id).addHints(hints)
}