Skip to content

Commit

Permalink
Refactored context/workaddress.schema.json into context/profile-work-…
Browse files Browse the repository at this point in the history
…details.schema.json and expanded it to include all the work concepts.
  • Loading branch information
chrisdegroot committed Nov 13, 2018
1 parent 577f45c commit ed6d30b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
}
Expand All @@ -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"
Expand Down

0 comments on commit ed6d30b

Please sign in to comment.