An email address. Alias for the email type.
Formats
Section titled “Formats”A JSON example of this model is:
"john.doe@example.com"
The JSON Schema for this model is:
$id: email.yamltype: stringformat: emaildescription: A valid email address.
The TypeSpec code for this model is:
/** An email address. */alias Email = Types.email;
EmailCollection
Section titled “EmailCollection”A collection of email addresses for a person or organization.
Property | Type | Required | Description |
---|---|---|---|
primary | Yes | The primary email address for a person or organization | |
otherEmails | Record<email> | No | Additional email addresses keyed by a descriptive label |
Formats
Section titled “Formats”A JSON example of this model is:
{ "primary": "john.doe@example.com", "otherEmails": { "work": "john.doe@work.com", "personal": "john.doe@gmail.com", "school": "john.doe@school.edu" }}
The JSON Schema for this model is:
$id: EmailCollection.yamltype: objectproperties: primary: $ref: email.yaml description: The primary email address for a person or organization. otherEmails: type: object properties: {} unevaluatedProperties: $ref: email.yaml description: Additional email addresses keyed by a descriptive label.required: - primarydescription: A collection of email addresses for a person or organization.
The TypeSpec code for this model is:
/** A collection of email addresses. */model EmailCollection { /** The primary email address for a person or organization. */ primary: Types.email;
/** Additional email addresses keyed by a descriptive label (e.g., "work", "personal", "support"). */ otherEmails?: Record<Types.email>;}