alloy.common.EmailFormat.scala Maven / Gradle / Ivy
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