Skip to content

Commit

Permalink
Added meta:tileId and meta:descriptionId to resolver of compatibility…
Browse files Browse the repository at this point in the history
… check
  • Loading branch information
bisin-adobe committed Jun 21, 2021
1 parent 26c8c21 commit f30f47d
Show file tree
Hide file tree
Showing 501 changed files with 25,056 additions and 25,165 deletions.
24,982 changes: 12,491 additions & 12,491 deletions __localization__/en-US.json

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion bin/incompatibility-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,24 @@ function validateSchemas(files) {
schema.definitions[i].type = 'object'
}
}
var schema4Validation = mergeAllOf(deref(schema));
var schema4Validation = mergeAllOf(deref(schema),{
resolvers: {
"meta:titleId": function(values) {
var valueList = [];
for (var i in values)
valueList = valueList.concat(values[i]);
if (valueList.length >1 )
return Array.from(new Set(valueList));
},
"meta:descriptionId": function(values) {
var valueList = [];
for (var i in values)
valueList = valueList.concat(values[i]);
if (valueList.length >1 )
return Array.from(new Set(valueList));
}
}
});
delete schema4Validation.definitions;
validate(schema4Validation, file);
});
Expand Down
4 changes: 2 additions & 2 deletions components/behaviors/adhoc.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
],
"meta:status": "stable",
"meta:createdDate": "2020-08-10",
"meta:titleId": "adhoc##title##15141",
"meta:descriptionId": "adhoc##description##4751"
"meta:titleId": "adhoc##title##7411",
"meta:descriptionId": "adhoc##description##2841"
}
8 changes: 4 additions & 4 deletions components/behaviors/record.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"type": "string",
"format": "uri-reference",
"description": "A unique identifier for the record.",
"meta:titleId": "record##@id##title##37721",
"meta:descriptionId": "record##@id##description##8191"
"meta:titleId": "record##@id##title##71181",
"meta:descriptionId": "record##@id##description##94011"
}
}
}
Expand All @@ -36,6 +36,6 @@
],
"meta:status": "stable",
"meta:createdDate": "2020-08-10",
"meta:titleId": "record##title##20301",
"meta:descriptionId": "record##description##21951"
"meta:titleId": "record##title##69671",
"meta:descriptionId": "record##description##21721"
}
16 changes: 8 additions & 8 deletions components/behaviors/time-series.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"type": "string",
"format": "uri-reference",
"description": "A unique identifier for the time-series event.",
"meta:titleId": "time-series##@id##title##75911",
"meta:descriptionId": "time-series##@id##description##35101"
"meta:titleId": "time-series##@id##title##33991",
"meta:descriptionId": "time-series##@id##description##46291"
},
"xdm:timestamp": {
"title": "Timestamp",
"type": "string",
"format": "date-time",
"description": "The time when an event or observation occurred.",
"meta:titleId": "time-series##xdm:timestamp##title##83581",
"meta:descriptionId": "time-series##xdm:timestamp##description##88791"
"meta:titleId": "time-series##xdm:timestamp##title##66571",
"meta:descriptionId": "time-series##xdm:timestamp##description##63971"
},
"xdm:eventType": {
"title": "Event Type",
Expand Down Expand Up @@ -80,8 +80,8 @@
"opportunityEvent.addToOpportunity": "Opportunity Event Add To Opportunity",
"opportunityEvent.opportunityUpdated": "Opportunity Event Opportunity Updated"
},
"meta:titleId": "time-series##xdm:eventType##title##8581",
"meta:descriptionId": "time-series##xdm:eventType##description##40971"
"meta:titleId": "time-series##xdm:eventType##title##65571",
"meta:descriptionId": "time-series##xdm:eventType##description##73511"
}
}
}
Expand All @@ -96,6 +96,6 @@
],
"meta:status": "stable",
"meta:createdDate": "2020-08-10",
"meta:titleId": "time-series##title##24681",
"meta:descriptionId": "time-series##description##49711"
"meta:titleId": "time-series##title##55911",
"meta:descriptionId": "time-series##description##45991"
}
12 changes: 6 additions & 6 deletions components/classes/aircraft.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"title": "Tail Number",
"type": "string",
"description": "Captures the tail number (identification string) for the aircraft.",
"meta:titleId": "aircraft##xdm:tailNumber##title##65361",
"meta:descriptionId": "aircraft##xdm:tailNumber##description##31401"
"meta:titleId": "aircraft##xdm:tailNumber##title##70451",
"meta:descriptionId": "aircraft##xdm:tailNumber##description##41431"
},
"xdm:aircraftType": {
"title": "Aircraft Type",
"type": "string",
"description": "Records the aircraft type.",
"meta:titleId": "aircraft##xdm:aircraftType##title##42861",
"meta:descriptionId": "aircraft##xdm:aircraftType##description##27751"
"meta:titleId": "aircraft##xdm:aircraftType##title##27081",
"meta:descriptionId": "aircraft##xdm:aircraftType##description##55481"
}
}
}
Expand All @@ -45,6 +45,6 @@
}
],
"meta:status": "experimental",
"meta:titleId": "aircraft##title##23951",
"meta:descriptionId": "aircraft##description##92341"
"meta:titleId": "aircraft##title##71581",
"meta:descriptionId": "aircraft##description##13691"
}
44 changes: 22 additions & 22 deletions components/classes/b2b/account-person.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,75 +23,75 @@
"title": "Account Person ID",
"description": "Unique ID for this relationship between an account and a person.",
"type": "string",
"meta:titleId": "account-person##xdm:accountPersonID##title##18811",
"meta:descriptionId": "account-person##xdm:accountPersonID##description##64601"
"meta:titleId": "account-person##xdm:accountPersonID##title##48511",
"meta:descriptionId": "account-person##xdm:accountPersonID##description##93531"
},
"xdm:accountID": {
"title": "Account ID",
"description": "Unique ID for the account in this account person relationship.",
"type": "string",
"meta:titleId": "account-person##xdm:accountID##title##58181",
"meta:descriptionId": "account-person##xdm:accountID##description##13741"
"meta:titleId": "account-person##xdm:accountID##title##15251",
"meta:descriptionId": "account-person##xdm:accountID##description##1131"
},
"xdm:personID": {
"title": "Person ID",
"description": "Unique ID for the person in this account person relationship.",
"type": "string",
"meta:titleId": "account-person##xdm:personID##title##87331",
"meta:descriptionId": "account-person##xdm:personID##description##8621"
"meta:titleId": "account-person##xdm:personID##title##56751",
"meta:descriptionId": "account-person##xdm:personID##description##36711"
},
"xdm:personRole": {
"title": "Person Role",
"description": "Role of the person on this account.",
"type": "string",
"meta:titleId": "account-person##xdm:personRole##title##88611",
"meta:descriptionId": "account-person##xdm:personRole##description##40041"
"meta:titleId": "account-person##xdm:personRole##title##75331",
"meta:descriptionId": "account-person##xdm:personRole##description##63001"
},
"xdm:isDirect": {
"title": "Direct Flag",
"description": "Boolean to indicate if this is a direct relationship between the account and the person.",
"type": "boolean",
"meta:titleId": "account-person##xdm:isDirect##title##99001",
"meta:descriptionId": "account-person##xdm:isDirect##description##20831"
"meta:titleId": "account-person##xdm:isDirect##title##72761",
"meta:descriptionId": "account-person##xdm:isDirect##description##23391"
},
"xdm:isActive": {
"title": "Active Flag",
"description": "Boolean to indicate if this relationship between the account and the person is active.",
"type": "boolean",
"meta:titleId": "account-person##xdm:isActive##title##24441",
"meta:descriptionId": "account-person##xdm:isActive##description##45941"
"meta:titleId": "account-person##xdm:isActive##title##60631",
"meta:descriptionId": "account-person##xdm:isActive##description##99461"
},
"xdm:isPrimary": {
"title": "Primary Flag",
"description": "Boolean to indicate if the person is the primary contact on the account.",
"type": "boolean",
"meta:titleId": "account-person##xdm:isPrimary##title##66331",
"meta:descriptionId": "account-person##xdm:isPrimary##description##53441"
"meta:titleId": "account-person##xdm:isPrimary##title##18891",
"meta:descriptionId": "account-person##xdm:isPrimary##description##42401"
},
"xdm:relationStartDate": {
"title": "Relationship Start Date",
"description": "The date when the relationship between the account and the person started.",
"type": "string",
"format": "date-time",
"meta:titleId": "account-person##xdm:relationStartDate##title##48281",
"meta:descriptionId": "account-person##xdm:relationStartDate##description##15941"
"meta:titleId": "account-person##xdm:relationStartDate##title##42491",
"meta:descriptionId": "account-person##xdm:relationStartDate##description##30391"
},
"xdm:relationEndDate": {
"title": "Relationship End Date",
"description": "The date when the relationship between the account and the person ended.",
"type": "string",
"format": "date-time",
"meta:titleId": "account-person##xdm:relationEndDate##title##40071",
"meta:descriptionId": "account-person##xdm:relationEndDate##description##76511"
"meta:titleId": "account-person##xdm:relationEndDate##title##87821",
"meta:descriptionId": "account-person##xdm:relationEndDate##description##42161"
},
"xdm:currencyCode": {
"title": "Currency Code",
"type": "string",
"examples": ["USD", "EUR"],
"pattern": "^[A-Z]{3}$",
"description": "The ISO 4217 currency code used for the relationship between the account and the person.",
"meta:titleId": "account-person##xdm:currencyCode##title##44801",
"meta:descriptionId": "account-person##xdm:currencyCode##description##31261"
"meta:titleId": "account-person##xdm:currencyCode##title##77161",
"meta:descriptionId": "account-person##xdm:currencyCode##description##41211"
}
}
}
Expand All @@ -109,6 +109,6 @@
],
"required": ["xdm:accountPersonID"],
"meta:status": "experimental",
"meta:titleId": "account-person##title##1781",
"meta:descriptionId": "account-person##description##23241"
"meta:titleId": "account-person##title##61651",
"meta:descriptionId": "account-person##description##47221"
}
8 changes: 4 additions & 4 deletions components/classes/b2b/account.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"title": "Account identifer",
"description": "Unique ID for the account.",
"type": "string",
"meta:titleId": "account##xdm:accountID##title##27301",
"meta:descriptionId": "account##xdm:accountID##description##86831"
"meta:titleId": "account##xdm:accountID##title##61871",
"meta:descriptionId": "account##xdm:accountID##description##72621"
}
}
}
Expand All @@ -46,6 +46,6 @@
],
"required": ["xdm:accountID"],
"meta:status": "experimental",
"meta:titleId": "account##title##9131",
"meta:descriptionId": "account##description##32431"
"meta:titleId": "account##title##86331",
"meta:descriptionId": "account##description##95121"
}
16 changes: 8 additions & 8 deletions components/classes/b2b/marketing-list-member.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@
"title": "Marketing List Member ID",
"description": "Unique ID for the membership of this person to this marketing list.",
"type": "string",
"meta:titleId": "marketing-list-member##xdm:marketingListMemberID##title##56321",
"meta:descriptionId": "marketing-list-member##xdm:marketingListMemberID##description##26571"
"meta:titleId": "marketing-list-member##xdm:marketingListMemberID##title##51671",
"meta:descriptionId": "marketing-list-member##xdm:marketingListMemberID##description##26181"
},
"xdm:personID": {
"title": "Person Identifier",
"description": "Unique ID for the person who is a member of this marketing list.",
"type": "string",
"meta:titleId": "marketing-list-member##xdm:personID##title##95981",
"meta:descriptionId": "marketing-list-member##xdm:personID##description##4491"
"meta:titleId": "marketing-list-member##xdm:personID##title##35301",
"meta:descriptionId": "marketing-list-member##xdm:personID##description##68391"
},
"xdm:marketingListID": {
"title": "Marketing List Identifier",
"description": "Unique ID for the marketing list this person is a member of.",
"type": "string",
"meta:titleId": "marketing-list-member##xdm:marketingListID##title##67951",
"meta:descriptionId": "marketing-list-member##xdm:marketingListID##description##40181"
"meta:titleId": "marketing-list-member##xdm:marketingListID##title##46651",
"meta:descriptionId": "marketing-list-member##xdm:marketingListID##description##70641"
}
}
}
Expand All @@ -59,6 +59,6 @@
],
"required": ["xdm:marketingListMemberID"],
"meta:status": "experimental",
"meta:titleId": "marketing-list-member##title##25901",
"meta:descriptionId": "marketing-list-member##description##43641"
"meta:titleId": "marketing-list-member##title##56381",
"meta:descriptionId": "marketing-list-member##description##53561"
}
16 changes: 8 additions & 8 deletions components/classes/b2b/marketing-list.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@
"title": "Marketing List ID",
"description": "Unique ID of the marketing list.",
"type": "string",
"meta:titleId": "marketing-list##xdm:marketingListID##title##75601",
"meta:descriptionId": "marketing-list##xdm:marketingListID##description##69701"
"meta:titleId": "marketing-list##xdm:marketingListID##title##99591",
"meta:descriptionId": "marketing-list##xdm:marketingListID##description##23921"
},
"xdm:marketingListName": {
"title": "Marketing List Name",
"description": "Name of the marketing list.",
"type": "string",
"meta:titleId": "marketing-list##xdm:marketingListName##title##87451",
"meta:descriptionId": "marketing-list##xdm:marketingListName##description##72051"
"meta:titleId": "marketing-list##xdm:marketingListName##title##27221",
"meta:descriptionId": "marketing-list##xdm:marketingListName##description##71091"
},
"xdm:marketingListDescription": {
"title": "Marketing List Description",
"description": "Description of the marketing list.",
"type": "string",
"meta:titleId": "marketing-list##xdm:marketingListDescription##title##70961",
"meta:descriptionId": "marketing-list##xdm:marketingListDescription##description##57321"
"meta:titleId": "marketing-list##xdm:marketingListDescription##title##12251",
"meta:descriptionId": "marketing-list##xdm:marketingListDescription##description##41091"
}
}
}
Expand All @@ -59,6 +59,6 @@
],
"required": ["xdm:marketingListID"],
"meta:status": "experimental",
"meta:titleId": "marketing-list##title##53631",
"meta:descriptionId": "marketing-list##description##39981"
"meta:titleId": "marketing-list##title##47871",
"meta:descriptionId": "marketing-list##description##64081"
}
16 changes: 8 additions & 8 deletions components/classes/b2b/opportunity-contact-role.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@
"title": "opportunity ContactID",
"description": "A Unique Key describing a combination of OpportunityID and contactID.",
"type": "string",
"meta:titleId": "opportunity-contact-role##xdm:opportunityContactID##title##16691",
"meta:descriptionId": "opportunity-contact-role##xdm:opportunityContactID##description##72401"
"meta:titleId": "opportunity-contact-role##xdm:opportunityContactID##title##22291",
"meta:descriptionId": "opportunity-contact-role##xdm:opportunityContactID##description##59841"
},
"xdm:opportunityID": {
"title": "Opportunity ID",
"description": "Opportunity ID unique identifier.",
"type": "string",
"meta:titleId": "opportunity-contact-role##xdm:opportunityID##title##67881",
"meta:descriptionId": "opportunity-contact-role##xdm:opportunityID##description##9221"
"meta:titleId": "opportunity-contact-role##xdm:opportunityID##title##18281",
"meta:descriptionId": "opportunity-contact-role##xdm:opportunityID##description##2761"
},
"xdm:contactID": {
"title": "Contact ID",
"description": "Contact ID unique identifier.",
"type": "string",
"meta:titleId": "opportunity-contact-role##xdm:contactID##title##34721",
"meta:descriptionId": "opportunity-contact-role##xdm:contactID##description##76551"
"meta:titleId": "opportunity-contact-role##xdm:contactID##title##88871",
"meta:descriptionId": "opportunity-contact-role##xdm:contactID##description##70581"
}
}
}
Expand All @@ -63,6 +63,6 @@
"xdm:contactID"
],
"meta:status": "deprecated",
"meta:titleId": "opportunity-contact-role##title##4761",
"meta:descriptionId": "opportunity-contact-role##description##18681"
"meta:titleId": "opportunity-contact-role##title##80871",
"meta:descriptionId": "opportunity-contact-role##description##64521"
}
Loading

0 comments on commit f30f47d

Please sign in to comment.