-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperson.schema.json
74 lines (74 loc) · 2.32 KB
/
person.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
{
"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/person",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Person",
"type": "object",
"meta:extensible": true,
"meta:auditable": true,
"description":
"An individual person. May represent a person acting in various roles, such as a customer, contact, or owner.",
"definitions": {
"person": {
"properties": {
"xdm:name": {
"title": "Full name",
"$ref": "https://ns.adobe.com/xdm/context/person-name",
"description": "The person's full name"
},
"xdm:birthDay": {
"title": "Birth day",
"type": "integer",
"description": "The day of the month a person was born (1-31).",
"minimum": 1,
"maximum": 31
},
"xdm:birthMonth": {
"title": "Birth month",
"type": "integer",
"description": "The month of the year a person was born (1-12).",
"minimum": 1,
"maximum": 12
},
"xdm:birthYear": {
"title": "Birth year",
"type": "integer",
"description":
"The year a person was born including the century (yyyy, e.g 1983).",
"minimum": 1,
"maximum": 32767
},
"xdm:gender": {
"title": "Gender",
"type": "string",
"enum": ["male", "female", "not_specified", "non_specific"],
"meta:enum": {
"male": "Male",
"female": "Female",
"not_specified": "Not Specified",
"non_specific": "Nonspecific"
},
"description": "Gender identity of the person.\n",
"default": "not_specified"
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/person"
},
{
"$ref": "https://ns.adobe.com/xdm/common/auditable"
}
],
"meta:status": "experimental"
}