-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the format of reconciliation queries, responses and data exten…
…sion responses (#92) * Change the format of reconciliation queries, responses and data extension responses. This removes the use of arbitrary keys in JSON objects. As a result we are no longer using "patternProperties" in our own JSON schemas. Closes #33. * Reformat wront-properties.json * Avoid JSON responses with a root array: wrap them in an object * Rename 'result' field to 'candidates' in reconciliation response
- Loading branch information
Showing
19 changed files
with
680 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
latest/examples/reconciliation-query-batch/invalid/empty-properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"q1": { | ||
"properties": [] | ||
} | ||
"queries": [ | ||
{ | ||
"properties": [] | ||
} | ||
] | ||
} |
8 changes: 5 additions & 3 deletions
8
latest/examples/reconciliation-query-batch/invalid/empty-query.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"q1": { | ||
"limit": 1 | ||
} | ||
"queries": [ | ||
{ | ||
"limit": 1 | ||
} | ||
] | ||
} |
68 changes: 35 additions & 33 deletions
68
latest/examples/reconciliation-query-batch/invalid/misnamed-property.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
{ | ||
"q0": { | ||
"query": "Christel Hanewinckel", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5, | ||
"props": [ | ||
{ | ||
"pid": "professionOrOccupation", | ||
"v": "Politik*" | ||
}, | ||
{ | ||
"pid": "affiliation", | ||
"v": "http://d-nb.info/gnd/2022139-3" | ||
} | ||
], | ||
"type_strict": "should" | ||
}, | ||
"q1": { | ||
"query": "Franz Thönnes", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5, | ||
"props": [ | ||
{ | ||
"pid": "professionOrOccupation", | ||
"v": "Politik*" | ||
}, | ||
{ | ||
"pid": "affiliation", | ||
"v": "http://d-nb.info/gnd/2022139-3" | ||
} | ||
], | ||
"type_strict": "should" | ||
} | ||
} | ||
"queries": [ | ||
{ | ||
"query": "Christel Hanewinckel", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5, | ||
"props": [ | ||
{ | ||
"pid": "professionOrOccupation", | ||
"v": "Politik*" | ||
}, | ||
{ | ||
"pid": "affiliation", | ||
"v": "http://d-nb.info/gnd/2022139-3" | ||
} | ||
], | ||
"type_strict": "should" | ||
}, | ||
{ | ||
"query": "Franz Thönnes", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5, | ||
"props": [ | ||
{ | ||
"pid": "professionOrOccupation", | ||
"v": "Politik*" | ||
}, | ||
{ | ||
"pid": "affiliation", | ||
"v": "http://d-nb.info/gnd/2022139-3" | ||
} | ||
], | ||
"type_strict": "should" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
latest/examples/reconciliation-query-batch/invalid/no-root-object.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
"properties": [{"pid":"uid", "v": "27eb892afbb2"}] | ||
}, | ||
{ | ||
"properties": [{"pid":"uid", "v": "ab09da9dd37e"}] | ||
} | ||
] |
11 changes: 11 additions & 0 deletions
11
latest/examples/reconciliation-query-batch/invalid/old-format.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"q0": { | ||
"query": "Christel Hanewinckel", | ||
"limit": 5 | ||
}, | ||
"q1": { | ||
"query": "Franz Thönnes", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5 | ||
} | ||
} |
68 changes: 35 additions & 33 deletions
68
latest/examples/reconciliation-query-batch/valid/example-full.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
{ | ||
"q0": { | ||
"query": "Christel Hanewinckel", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5, | ||
"properties": [ | ||
{ | ||
"pid": "professionOrOccupation", | ||
"v": "Politik*" | ||
}, | ||
{ | ||
"pid": "affiliation", | ||
"v": "http://d-nb.info/gnd/2022139-3" | ||
} | ||
], | ||
"type_strict": "should" | ||
}, | ||
"q1": { | ||
"query": "Franz Thönnes", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5, | ||
"properties": [ | ||
{ | ||
"pid": "professionOrOccupation", | ||
"v": "Politik*" | ||
}, | ||
{ | ||
"pid": "affiliation", | ||
"v": "http://d-nb.info/gnd/2022139-3" | ||
} | ||
], | ||
"type_strict": "should" | ||
} | ||
} | ||
"queries": [ | ||
{ | ||
"query": "Christel Hanewinckel", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5, | ||
"properties": [ | ||
{ | ||
"pid": "professionOrOccupation", | ||
"v": "Politik*" | ||
}, | ||
{ | ||
"pid": "affiliation", | ||
"v": "http://d-nb.info/gnd/2022139-3" | ||
} | ||
], | ||
"type_strict": "should" | ||
}, | ||
{ | ||
"query": "Franz Thönnes", | ||
"type": "DifferentiatedPerson", | ||
"limit": 5, | ||
"properties": [ | ||
{ | ||
"pid": "professionOrOccupation", | ||
"v": "Politik*" | ||
}, | ||
{ | ||
"pid": "affiliation", | ||
"v": "http://d-nb.info/gnd/2022139-3" | ||
} | ||
], | ||
"type_strict": "should" | ||
} | ||
] | ||
} |
16 changes: 9 additions & 7 deletions
16
latest/examples/reconciliation-query-batch/valid/example-min.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{ | ||
"q1": { | ||
"query": "Hans-Eberhard Urbaniak" | ||
}, | ||
"q2": { | ||
"query": "Ernst Schwanhold" | ||
} | ||
} | ||
"queries": [ | ||
{ | ||
"query": "Hans-Eberhard Urbaniak" | ||
}, | ||
{ | ||
"query": "Ernst Schwanhold" | ||
} | ||
] | ||
} |
Oops, something went wrong.