-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperson.schema.json
72 lines (72 loc) · 2.95 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
{
"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:birthDate": {
"title": "Birth Date",
"type": "string",
"format": "date",
"description": "The full date a person was born."
},
"xdm:birthDayAndMonth": {
"title": "Birth Date",
"type": "string",
"pattern": "[0-1][0-9]-[0-9][0-9]",
"description": "The day and month a person was born, in the format MM-DD. This field should be used when the day and month of a person's birth is known, but not the year."
},
"xdm:birthYear": {
"title": "Birth Year",
"type": "integer",
"description": "The year a person was born including the century (yyyy, e.g 1983). This field should be used when only the person's age is known, not the full birth date.",
"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"
}
],
"meta:status": "experimental"
}