{
"$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-schema.json",
"title": "Rule",
"description": "An object containing RuleName, and MatchingKeys.",
"type": "object",
"properties": {
"matchingKeys": {
"allOf": [
{
"$ref": "#/components/schemas/RuleMatchingKeysList"
},
{
"description": "A list of MatchingKeys. The MatchingKeys must have been defined in the SchemaMapping. Two records are considered to match according to this rule if all of the MatchingKeys match."
}
]
},
"ruleName": {
"allOf": [
{
"$ref": "#/components/schemas/RuleRuleNameString"
},
{
"description": "A name for the matching rule."
}
]
}
},
"required": [
"matchingKeys",
"ruleName"
]
}