Skip to content

Commit 426e065

Browse files
authored
Merge pull request #195 from reconciliation-api/194-add-explicit-matchtype-id
Updated spec and schema to add "id" matchType
2 parents 14f16db + 1b58deb commit 426e065

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

1.0-draft/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,12 @@ <h3>Structure of a Reconciliation Query</h3>
549549
by allowing clients to specify an attribute of entities that should match. It consists of:
550550
<dl>
551551
<dt><code>matchType</code></dt>
552-
<dd>{{String}} (required) either <code>name</code> or <code>property</code>, depending on whether the condition relates to entity names or their properties.</dd>
552+
<dd>{{String}} (required) either <code>name</code> or <code>id</code> or <code>property</code>, depending on whether the condition relates to entity names, entity ids or their properties.</dd>
553553
<dt><code>propertyId</code></dt>
554554
<dd>{{String}} (required if the <code>matchType</code> is <code>property</code>) a <a href='#properties'>property</a> identifier.</dd>
555555
<dt><code>propertyValue</code></dt>
556556
<dd>{{String}} (required) one or more <a>property values</a>. If <code>matchType</code> is <code>name</code>, then this value is to
557-
be matched to entity names, otherwise to the property values via the supplied <code>propertyId</code>. The specifics of how this similarity
557+
be matched to entity names. If <code>matchType</code> is <code>id</code>, then this value is to be matched to entity ids, otherwise to the property values via the supplied <code>propertyId</code>. The specifics of how this similarity
558558
is defined are determined by the service.</dd>
559559
<dt><code>required</code></dt>
560560
<dd>{{Boolean}} (optional) to indicate if a match for the property is required for an entity to enter the list of candidates (i.e. acting like a filter or a WHERE clause in SQL)

1.0-draft/schemas/reconciliation-query-batch.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@
7272
"properties": {
7373
"matchType": {
7474
"type": "string",
75-
"description": "A string to indicate whether to match the supplied value to entity names or property values",
75+
"description": "A string to indicate whether to match the supplied value to entity names, entity ids or property values",
7676
"enum": [
7777
"name",
78+
"id",
7879
"property"
7980
]
8081
},
@@ -83,7 +84,7 @@
8384
"description": "The identifier of the property, whose values will be compared to the values supplied. Required if 'matchType' is 'property'."
8485
},
8586
"propertyValue": {
86-
"description": "A value (or array of values) to match against the entity names or property values associated with the property on each candidate",
87+
"description": "A value (or array of values) to match against the entity names, entity ids, or property values associated with the property on each candidate",
8788
"oneOf": [
8889
{
8990
"$ref": "#/definitions/property_value"

0 commit comments

Comments
 (0)