-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemailaddress.schema.json
79 lines (79 loc) · 2.65 KB
/
emailaddress.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/context/emailaddress",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Email Address",
"type": "object",
"meta:extensible": true,
"description": "A standard email address.",
"definitions": {
"emailaddress": {
"properties": {
"xdm:primary": {
"title": "Primary",
"type": "boolean",
"description":
"Primary email indicator.\n\nA Profile can have only one `primary` email address at a given point of time.\n"
},
"xdm:address": {
"title": "Address",
"type": "string",
"format": "email",
"description":
"The technical address, e.g '[email protected]' as commonly defined in RFC2822 and subsequent standards."
},
"xdm:label": {
"title": "Label",
"type": "string",
"description":
"Additional display information that maybe available, e.g MS Outlook rich address controls display 'John Smith [email protected]', the 'John Smith' part is data that would be placed in the label."
},
"xdm:type": {
"title": "Type",
"type": "string",
"description":
"The way the account relates to the person. e.g 'work' or 'personal'",
"meta:enum": {
"unknown": "Unknown",
"personal": "Personal",
"work": "Work",
"education": "Education"
}
},
"xdm:status": {
"title": "Status",
"type": "string",
"description":
"An indication as to the ability to use the email address.",
"default": "active",
"meta:enum": {
"active": "Active",
"incomplete": "Incomplete",
"pending_verification": "Pending Verification",
"blacklisted": "Blacklisted",
"blocked": "Blocked"
}
},
"xdm:statusReason": {
"title": "Status Reason",
"type": "string",
"description": "A description of the current status."
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/emailaddress"
}
],
"meta:status": "stabilizing"
}