{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-entity-resolution/refs/heads/main/json-schema/amazon-entity-resolution-rule-based-properties-schema.json", "title": "RuleBasedProperties", "description": "An object which defines the list of matching rules to run and has a field Rules, which is a list of rule objects.", "type": "object", "properties": { "attributeMatchingModel": { "allOf": [ { "$ref": "#/components/schemas/AttributeMatchingModel" }, { "description": "You can either choose ONE_TO_ONE or MANY_TO_MANY as the AttributeMatchingModel. When choosing MANY_TO_MANY, the system can match attribute across the sub-types of an attribute type. For example, if the value of the Email field of Profile A and the value of BusinessEmail field of Profile B matches, the two profiles are matched on the Email type. When choosing ONE_TO_ONE the system can only match if the sub-types are exact matches. For example, only when the value of the Email field of Profile A and the value of the Email field of Profile B matches, the two profiles are matched on the Email type." } ] }, "rules": { "allOf": [ { "$ref": "#/components/schemas/RuleBasedPropertiesRulesList" }, { "description": "A list of Rule objects, each of which have fields RuleName and MatchingKeys." } ] } }, "required": [ "attributeMatchingModel", "rules" ] }