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

alloy.common.EmailFormat.scala Maven / Gradle / Ivy

There is a newer version: 0.19.0-41-91762fb
Show newest version
package alloy.common

import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant

/** Email address as defined in https://www.rfc-editor.org/rfc/rfc2821 and https://www.rfc-editor.org/rfc/rfc2822
  * A more human-readable format is available here: https://www.rfc-editor.org/rfc/rfc3696#section-3
  */
final case class EmailFormat()

object EmailFormat extends ShapeTag.Companion[EmailFormat] {
  val id: ShapeId = ShapeId("alloy.common", "emailFormat")

  val hints: Hints = Hints(
    smithy.api.Documentation("Email address as defined in https://www.rfc-editor.org/rfc/rfc2821 and https://www.rfc-editor.org/rfc/rfc2822\nA more human-readable format is available here: https://www.rfc-editor.org/rfc/rfc3696#section-3"),
    smithy.api.Trait(selector = Some(":test(string, member > string)"), structurallyExclusive = None, conflicts = None, breakingChanges = None),
  ).lazily


  implicit val schema: Schema[EmailFormat] = constant(EmailFormat()).withId(id).addHints(hints)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy