From 75aafae8db6aa1b86f19cdcaa6e081df2b7cdc2d Mon Sep 17 00:00:00 2001 From: eknee <6667779+eknee@users.noreply.github.com> Date: Mon, 13 Apr 2020 17:38:03 -0500 Subject: [PATCH 1/5] Updates to Person and Address Mixins --added mailing address to Address Mixin --new field added to person-name datatype called "suffix" --new fields added to pesron mixin (maritalStatus, nationality, taxId) --- schemas/context/person-name.schema.json | 5 +++++ schemas/context/person.example.1.json | 7 ++++++- schemas/context/person.example.2.json | 9 -------- schemas/context/person.schema.json | 21 +++++++++++++++++++ .../context/profile-addresses.example.1.json | 16 +++++++++++++- schemas/context/profile-addresses.schema.json | 5 +++++ 6 files changed, 52 insertions(+), 11 deletions(-) delete mode 100644 schemas/context/person.example.2.json diff --git a/schemas/context/person-name.schema.json b/schemas/context/person-name.schema.json index 4b0940022..efa8fa0c6 100644 --- a/schemas/context/person-name.schema.json +++ b/schemas/context/person-name.schema.json @@ -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", diff --git a/schemas/context/person.example.1.json b/schemas/context/person.example.1.json index ec9e9b529..2138024b7 100644 --- a/schemas/context/person.example.1.json +++ b/schemas/context/person.example.1.json @@ -5,5 +5,10 @@ "xdm:lastName": "Doe", "xdm:fullName": "Jane F. Doe" }, - "xdm:birthDate": "1996-01-03" + "xdm:birthDate": "1996-01-03", + "xdm:birthDayAndMonth": "01-03", + "xdm:birthYear": "1996", + "xdm:gender": "female", + "xdm:maritalStatus": "single", + "xdm:nationality": "CAN" } diff --git a/schemas/context/person.example.2.json b/schemas/context/person.example.2.json deleted file mode 100644 index 6eb3cc3b4..000000000 --- a/schemas/context/person.example.2.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "xdm:name": { - "xdm:firstName": "Jane", - "xdm:middleName": "F", - "xdm:lastName": "Doe", - "xdm:fullName": "Jane F. Doe" - }, - "xdm:birthDayAndMonth": "01-03" -} diff --git a/schemas/context/person.schema.json b/schemas/context/person.schema.json index 455228555..fb76ba183 100644 --- a/schemas/context/person.schema.json +++ b/schemas/context/person.schema.json @@ -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": { + "married": "Married", + "single": "Single", + "not_specified": "Not Specified" + }, + "description": "Marital status of the person.\n", + "default": "not_specified" + }, + "xdm:nationality": { + "title": "Nationality", + "type": "string", + "description": "The legal relationship between a person and their state represented using the ISO 3166-1 Alpha-3 code." } } } diff --git a/schemas/context/profile-addresses.example.1.json b/schemas/context/profile-addresses.example.1.json index 26101f2f6..eaaa744b1 100644 --- a/schemas/context/profile-addresses.example.1.json +++ b/schemas/context/profile-addresses.example.1.json @@ -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" + } } \ No newline at end of file diff --git a/schemas/context/profile-addresses.schema.json b/schemas/context/profile-addresses.schema.json index c1b679522..2400119c9 100644 --- a/schemas/context/profile-addresses.schema.json +++ b/schemas/context/profile-addresses.schema.json @@ -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." } } From 921c8bb7f432d8bc4f1ccbde1a2727325249f8b0 Mon Sep 17 00:00:00 2001 From: eknee <6667779+eknee@users.noreply.github.com> Date: Mon, 13 Apr 2020 17:40:46 -0500 Subject: [PATCH 2/5] person example fix corrected birth year as int instead of string --- schemas/context/person.example.1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/context/person.example.1.json b/schemas/context/person.example.1.json index 2138024b7..864913d0b 100644 --- a/schemas/context/person.example.1.json +++ b/schemas/context/person.example.1.json @@ -7,7 +7,7 @@ }, "xdm:birthDate": "1996-01-03", "xdm:birthDayAndMonth": "01-03", - "xdm:birthYear": "1996", + "xdm:birthYear": 1996, "xdm:gender": "female", "xdm:maritalStatus": "single", "xdm:nationality": "CAN" From 87d848148e23023db67da178a9c0ee387c7202cd Mon Sep 17 00:00:00 2001 From: eknee <6667779+eknee@users.noreply.github.com> Date: Tue, 14 Apr 2020 09:45:24 -0500 Subject: [PATCH 3/5] Updates to person object --fixed example --updated marital status enum options and added pattern for nationality --- schemas/context/person.example.1.json | 2 -- schemas/context/person.schema.json | 12 +++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/schemas/context/person.example.1.json b/schemas/context/person.example.1.json index 864913d0b..1f8838cc6 100644 --- a/schemas/context/person.example.1.json +++ b/schemas/context/person.example.1.json @@ -6,8 +6,6 @@ "xdm:fullName": "Jane F. Doe" }, "xdm:birthDate": "1996-01-03", - "xdm:birthDayAndMonth": "01-03", - "xdm:birthYear": 1996, "xdm:gender": "female", "xdm:maritalStatus": "single", "xdm:nationality": "CAN" diff --git a/schemas/context/person.schema.json b/schemas/context/person.schema.json index fb76ba183..49f50f0e1 100644 --- a/schemas/context/person.schema.json +++ b/schemas/context/person.schema.json @@ -63,20 +63,30 @@ "enum": [ "married", "single", + "divorced", + "widowed", "not_specified" ], "meta:enum": { "married": "Married", "single": "Single", + "divoced": "Divorced", + "widowed": "Widowed", "not_specified": "Not Specified" }, - "description": "Marital status of the person.\n", + "description": "Describes a person's relationship with a significant other.", "default": "not_specified" }, "xdm:nationality": { "title": "Nationality", "type": "string", + "pattern": "^[A-Z]{3}$", "description": "The legal relationship between a person and their state represented using the ISO 3166-1 Alpha-3 code." + }, + "xdm:taxId": { + "title": "Tax ID", + "type": "string", + "description": "The Tax / Fiscal ID of the person, e.g. the TIN in the US or the CIF/NIF in Spain." } } } From cb1e7d5e104635a0e6605f9d7cb7a3f102ac5f41 Mon Sep 17 00:00:00 2001 From: eknee <6667779+eknee@users.noreply.github.com> Date: Sun, 19 Apr 2020 09:12:39 -0500 Subject: [PATCH 4/5] Nationality field updated --nationality field updated from 3 digit to 2 digit ISO 3166-1 standard --- schemas/context/person.schema.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schemas/context/person.schema.json b/schemas/context/person.schema.json index 49f50f0e1..927e92f28 100644 --- a/schemas/context/person.schema.json +++ b/schemas/context/person.schema.json @@ -70,7 +70,7 @@ "meta:enum": { "married": "Married", "single": "Single", - "divoced": "Divorced", + "divorced": "Divorced", "widowed": "Widowed", "not_specified": "Not Specified" }, @@ -80,8 +80,8 @@ "xdm:nationality": { "title": "Nationality", "type": "string", - "pattern": "^[A-Z]{3}$", - "description": "The legal relationship between a person and their state represented using the ISO 3166-1 Alpha-3 code." + "pattern": "^[A-Z]{2}$", + "description": "The legal relationship between a person and their state represented using the ISO 3166-1 Alpha-2 code." }, "xdm:taxId": { "title": "Tax ID", From 124b016f2fdfed3ab108d03ee1c67ff5f2cc337f Mon Sep 17 00:00:00 2001 From: eknee <6667779+eknee@users.noreply.github.com> Date: Mon, 20 Apr 2020 09:41:56 -0500 Subject: [PATCH 5/5] Fixed person example --updated nationality value reflect two digit ISO 3166-1 code --- schemas/context/person.example.1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/context/person.example.1.json b/schemas/context/person.example.1.json index 1f8838cc6..9f883c896 100644 --- a/schemas/context/person.example.1.json +++ b/schemas/context/person.example.1.json @@ -8,5 +8,5 @@ "xdm:birthDate": "1996-01-03", "xdm:gender": "female", "xdm:maritalStatus": "single", - "xdm:nationality": "CAN" + "xdm:nationality": "CA" }