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

Logical mixin groupings v1 #861

Merged
merged 5 commits into from
Apr 13, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"aem_user": "packageUser",
"aem_password": "override me securely",
"markdown-importer-version": "0.0.4",
"schemas": 266
"schemas": 269
},
"scripts": {
"clean": "rm -rf docs/reference",
Expand Down
Empty file added schemas/context/profile-.txt
Empty file.
44 changes: 44 additions & 0 deletions schemas/context/profile-addresses.example.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"xdm:homeAddress": {
"@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"
},
"xdm:workAddress": {
"@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"
},
"xdm:shippingAddress": {
"@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"
}
}
46 changes: 46 additions & 0 deletions schemas/context/profile-addresses.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"meta:license": [
"Copyright 2018 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/profile-addresses",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Profile Addresses",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/profile"],
"description": "Contains the various addresses a single profile can contain",
"definitions": {
"profile-addresses": {
"properties": {
"xdm:homeAddress": {
"title": "Home Address",
"$ref": "https://ns.adobe.com/xdm/common/address",
"description": "A home postal address."
},
"xdm:workAddress": {
"title": "Work Address",
"$ref": "https://ns.adobe.com/xdm/common/address",
"description": "A work postal address."
},
"xdm:shippingAddress": {
"title": "Shipping Address",
"$ref": "https://ns.adobe.com/xdm/common/address",
"description": "A mailing postal address."
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/profile-addresses"
}
],
"meta:status": "experimental"
}
16 changes: 16 additions & 0 deletions schemas/context/profile-emails.example.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"xdm:personalEmail": {
"xdm:primary": false,
"xdm:address": "jsmith@xyzinc.com",
"xdm:label": "John Smith",
"xdm:type": "work",
"xdm:status": "active"
},
"xdm:workEmail": {
"xdm:primary": false,
"xdm:address": "jsmith@xyzinc.com",
"xdm:label": "John Smith",
"xdm:type": "work",
"xdm:status": "active"
}
}
41 changes: 41 additions & 0 deletions schemas/context/profile-emails.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"meta:license": [
"Copyright 2018 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/profile-emails",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Profile Emails",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/profile"],
"description": "Contains the various email types a single profile can contain",
"definitions": {
"profile-emails": {
"properties": {
"xdm:personalEmail": {
"title": "Personal Email",
"$ref": "https://ns.adobe.com/xdm/context/emailaddress",
"description": "A personal email address."
},
"xdm:workEmail": {
"title": "Work Email",
"$ref": "https://ns.adobe.com/xdm/context/emailaddress",
"description": "A work email address."
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/profile-emails"
}
],
"meta:status": "experimental"
}
22 changes: 22 additions & 0 deletions schemas/context/profile-phones.example.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"xdm:homePhone": {
"xdm:primary": true,
"xdm:number": "1-408-888-8888",
"xdm:status": "active"
},
"xdm:mobilePhone": {
"xdm:primary": true,
"xdm:number": "1-408-888-8888",
"xdm:status": "active"
},
"xdm:workPhone": {
"xdm:primary": true,
"xdm:number": "1-408-888-8888",
"xdm:status": "active"
},
"xdm:faxPhone": {
"xdm:primary": true,
"xdm:number": "1-408-888-8888",
"xdm:status": "active"
}
}
51 changes: 51 additions & 0 deletions schemas/context/profile-phones.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"meta:license": [
"Copyright 2018 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/profile-phones",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Profile Addresses",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/profile"],
"description": "Contains the various phone numbers a single profile can contain",
"definitions": {
"profile-phones": {
"properties": {
"xdm:homePhone": {
"title": "Home Phone",
"$ref": "https://ns.adobe.com/xdm/context/phonenumber",
"description": "Home phone number."
},
"xdm:mobilePhone": {
"title": "Mobile Phone",
"$ref": "https://ns.adobe.com/xdm/context/phonenumber",
"description": "Mobile phone number."
},
"xdm:workPhone": {
"title": "Work Phone",
"$ref": "https://ns.adobe.com/xdm/context/phonenumber",
"description": "Work phone number."
},
"xdm:faxPhone": {
"title": "Fax Phone",
"$ref": "https://ns.adobe.com/xdm/context/phonenumber",
"description": "Fax phone number."
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/profile-phones"
}
],
"meta:status": "experimental"
}