Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Person mixin and person name updates #862

Merged
merged 6 commits into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions schemas/context/person-name.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
"description":
"Normally an abbreviation of a persons title, honorific, or salutation. The `courtesyTitle` is used in front of full or last name in opening texts. For example, Mr. Miss. or Dr."
},
"xdm:suffix": {
"title": "Suffix",
"type": "string",
"description": "A group of letters provided after a person's name to provide additional information. The `suffix` is used at the end of someones name. For example Jr., Sr., M.D., PhD, I, II, III, etc."
},
"xdm:fullName": {
"title": "Full name",
"type": "string",
Expand Down
7 changes: 6 additions & 1 deletion schemas/context/person.example.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@
"xdm:lastName": "Doe",
"xdm:fullName": "Jane F. Doe"
},
"xdm:birthDate": "1996-01-03"
"xdm:birthDate": "1996-01-03",
eknee marked this conversation as resolved.
Show resolved Hide resolved
"xdm:birthDayAndMonth": "01-03",
"xdm:birthYear": 1996,
"xdm:gender": "female",
"xdm:maritalStatus": "single",
"xdm:nationality": "CAN"
eknee marked this conversation as resolved.
Show resolved Hide resolved
}
9 changes: 0 additions & 9 deletions schemas/context/person.example.2.json

This file was deleted.

21 changes: 21 additions & 0 deletions schemas/context/person.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,27 @@
},
"description": "Gender identity of the person.\n",
"default": "not_specified"
},
"xdm:maritalStatus": {
"title": "Marital Status",
"type": "string",
"enum": [
"married",
"single",
"not_specified"
],
"meta:enum": {
eknee marked this conversation as resolved.
Show resolved Hide resolved
"married": "Married",
"single": "Single",
"not_specified": "Not Specified"
},
"description": "Marital status of the person.\n",
"default": "not_specified"
},
"xdm:nationality": {
"title": "Nationality",
"type": "string",
eknee marked this conversation as resolved.
Show resolved Hide resolved
"description": "The legal relationship between a person and their state represented using the ISO 3166-1 Alpha-3 code."
}
}
}
Expand Down
16 changes: 15 additions & 1 deletion schemas/context/profile-addresses.example.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,19 @@
"schema:longitude": 121.8863,
"xdm:status": "active",
"xdm:lastVerifiedDate": "2018-01-02"
}
},
"xdm:mailingAddress": {
"@id": "https://data.adobe.io/entities/address/123",
"xdm:primary": false,
"xdm:street1": "345 Park Ave",
"xdm:city": "San Jose",
"xdm:stateProvince": "US-CA",
"xdm:postalCode": "95110",
"xdm:country": "United States",
"xdm:countryCode": "US",
"schema:latitude": 37.3382,
"schema:longitude": 121.8863,
"xdm:status": "active",
"xdm:lastVerifiedDate": "2018-01-02"
}
}
5 changes: 5 additions & 0 deletions schemas/context/profile-addresses.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"xdm:shippingAddress": {
"title": "Shipping Address",
"$ref": "https://ns.adobe.com/xdm/common/address",
"description": "A shipping postal address."
},
"xdm:mailingAddress": {
"title": "Mailing Address",
"$ref": "https://ns.adobe.com/xdm/common/address",
"description": "A mailing postal address."
}
}
Expand Down