Skip to content

Commit

Permalink
Merged in the IdentityMap and IdentityItem schemas from #523
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdegroot committed Nov 19, 2018
1 parent 98f44df commit c9b7721
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 19 deletions.
54 changes: 54 additions & 0 deletions schemas/context/identityitem.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"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/identityitem",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Identity Item",
"type": "object",
"meta:extensible": true,
"description":
"An end-user identity item, to be included in an instance of `context/identitymap`",
"definitions": {
"identityitem": {
"properties": {
"xdm:id": {
"title": "Identifier",
"type": "string",
"description": "Identity of the consumer in the related namespace."
},
"xdm:authenticatedState": {
"description":
"The state this identity is authenticated as for this observed ExperienceEvent.",
"type": "string",
"default": "ambiguous",
"enum": ["ambiguous", "authenticated", "loggedOut"],
"meta:enum": {
"ambiguous": "Ambiguous",
"authenticated": "User identified by a login or simular action that was valid at the time of the event observation.",
"loggedOut": "User was identified by a login action at some point of time previously, but is not currently logged in."
}
},
"xdm:primary": {
"title": "Primary",
"type": "boolean",
"default": false,
"description":
"Indicates this identity is the preferred identity. Is used as a hint to help systems better organize how identities are queried."
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/identityitem"
}
],
"meta:status": "experimental"
}
28 changes: 9 additions & 19 deletions schemas/context/identitymap.schema.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,29 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"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/identitymap",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Profile",
"title": "IdentityMap",
"type": "object",
"auditable": true,
"meta:extensible": true,
"meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/profile", "https://ns.adobe.com/xdm/context/pexperienceevent"],
"description":
"End User identity assertions.",
"meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/profile", "https://ns.adobe.com/xdm/context/experienceevent"],
"description": "Defines a map containing a set of end user identities, keyed on either namespace integration code or the namespace ID of the identity. The values of the map are an array, meaning that more than one identity of each namespace may be carried.",
"definitions": {
"identitymap": {
"properties": {
"xdm:identities": {
"title": "All User Identities",
"type": "array",
"items": {
"$ref": "https://ns.adobe.com/xdm/context/identity"
},
"minItems": 1,
"description":
"Array of Identities. Condensed, normalized encapsulation of all end user identifiers."
"meta:xdmType": "map",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "https://ns.adobe.com/xdm/context/identityitem"
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/identitymap"
}
Expand Down

0 comments on commit c9b7721

Please sign in to comment.