From ed6d30b1212ffe293d4f0af0ab4099bf61119300 Mon Sep 17 00:00:00 2001 From: Chris de Groot Date: Tue, 13 Nov 2018 17:35:19 -0500 Subject: [PATCH] Refactored context/workaddress.schema.json into context/profile-work-details.schema.json and expanded it to include all the work concepts. --- ...on => profile-work-details.example.1.json} | 12 +++++++++++ ....json => profile-work-details.schema.json} | 20 ++++++++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) rename schemas/context/{workaddress.example.1.json => profile-work-details.example.1.json} (60%) rename schemas/context/{workaddress.schema.json => profile-work-details.schema.json} (60%) diff --git a/schemas/context/workaddress.example.1.json b/schemas/context/profile-work-details.example.1.json similarity index 60% rename from schemas/context/workaddress.example.1.json rename to schemas/context/profile-work-details.example.1.json index 79b8b389e7..e09c17c76d 100644 --- a/schemas/context/workaddress.example.1.json +++ b/schemas/context/profile-work-details.example.1.json @@ -12,5 +12,17 @@ "schema:longitude": 121.8863, "xdm:status": "active", "xdm:lastVerifiedDate": "2018-01-02" + }, + "xdm:workEmail": { + "xdm:primary": false, + "xdm:address": "jsmith@xyzinc.com", + "xdm:label": "John Smith", + "xdm:type": "work", + "xdm:status": "active" + }, + "xdm:workPhone": { + "xdm:primary": true, + "xdm:number": "1-408-888-8888", + "xdm:status": "active" } } diff --git a/schemas/context/workaddress.schema.json b/schemas/context/profile-work-details.schema.json similarity index 60% rename from schemas/context/workaddress.schema.json rename to schemas/context/profile-work-details.schema.json index 45657f330e..c85656024a 100644 --- a/schemas/context/workaddress.schema.json +++ b/schemas/context/profile-work-details.schema.json @@ -5,20 +5,30 @@ "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/workaddress", + "$id": "https://ns.adobe.com/xdm/context/profile-work-details", "$schema": "http://json-schema.org/draft-06/schema#", - "title": "Work Address", + "title": "Profile Work Details", "type": "object", "meta:extensible": true, "meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/profile"], - "description": "Work Address for an end user.", + "description": "Work related end user profile information.", "definitions": { - "workaddress": { + "profile-work-details": { "properties": { "xdm:workAddress": { "title": "Work Address", "$ref": "https://ns.adobe.com/xdm/common/address", "description": "A work postal address." + }, + "xdm:workEmail": { + "title": "Work Email", + "$ref": "https://ns.adobe.com/xdm/context/emailaddress", + "description": "A work email address." + }, + "xdm:workPhone": { + "title": "Work Phone", + "$ref": "https://ns.adobe.com/xdm/context/phonenumber", + "description": "Work phone number." } } } @@ -28,7 +38,7 @@ "$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" }, { - "$ref": "#/definitions/workaddress" + "$ref": "#/definitions/profile-work-details" } ], "meta:status": "experimental"