An email address. Alias for the email type.
Formats
Section titled “Formats”A JSON example of this model.
"john.doe@example.com"
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: email.yamltype: stringexamples: - test@example.comformat: emaildescription: An email address
The TypeSpec code for this model.
/** An email address. */alias Email = Types.email; // Exposes Email from CommonGrants.Fields
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.
{ "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.
$schema: https://json-schema.org/draft/2020-12/schema$id: EmailCollection.yamltype: objectproperties: primary: $ref: email.yaml description: The primary email address for a person or organization. otherEmails: $ref: "#/$defs/RecordEmail" description: Additional email addresses keyed by a descriptive label (e.g., "work", "personal", "support").required: - primaryexamples: - primary: john.doe@example.com otherEmails: work: john.doe@work.com personal: john.doe@gmail.com school: john.doe@school.edudescription: A collection of email addresses.$defs: RecordEmail: type: object properties: {} unevaluatedProperties: $ref: email.yaml
The TypeSpec code for this model.
/** A collection of email addresses. */@example(Examples.Email.personalCollection)@Versioning.added(CommonGrants.Versions.v0_2)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>;}