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

alloy.UuidFormat.scala Maven / Gradle / Ivy

There is a newer version: 0.19.0-41-91762fb
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy