Inside the current revision of the proposal for an OData Delta Query Protocol i.e. [OData Delta Query Protocol Design 2012-12-19.docx](https://www.oasis-open.org/committees/download.php/47755/OData%20Delta%20Query%20Protocol%20Design%202012-12-19.docx) the sample inside section "JSON DeltaQuery Result Example" is syntactically invalid. A diff to a validating version yields:
"""
$> diff -u original_odqp_json-sample.json valid_odqp_json-sample.json
— original_odqp_json-sample.json 2013-01-05 14:33:29.000000000 +0100
+++ valid_odqp_json-sample.json 2013-01-05 14:34:22.000000000 +0100
@@ -11,7 +11,7 @@
"odata.type" : "odata.deletedLinkEntry",
"ref":"http://DeltaService.svc/Customers(ALFKI)'",
"relationship":"Orders",
- "related":http://DeltaService.svc/Orders(10643),
+ "related":"http://DeltaService.svc/Orders(10643)",
"when":"2012-11-07T15:38",
},
{ @@ -36,7 +36,7 @@ "ShipCountry":"Canada" },
{ - "odata.type":"odata.deletedEntry":
+ "odata.type":"odata.deletedEntry",
"odata.id":"http://DeltaService.svc/Customers('ALFKI')",
"when":"2012-11-07T15:38",
"reason": "deleted",
"""
I suggest replacing the sample by:
"""
{
"odata.metadata": "http://DeltaService.svc/$metadata ",
"odata.deltaLink": "http://DeltaService.svc/Customers?$expand=orders&$deltatoken=8015",
"value": [
,
,
,
,
,
{ "odata.type": "odata.deletedEntry", "reason": "deleted", "when": "2012-11-07T15:38", "odata.id": "http://DeltaService.svc/Customers('ALFKI')" } ]
}
"""
Field | Original Value | New Value |
---|---|---|
Proposal | Replace the JSON with the corrected version. |
Replace the JSON with the corrected version. Rewritten as suggested in version 1.3: https://www.oasis-open.org/apps/org/workgroup/odata/download.php/47996/OData%20Delta%20Query%20Protocol%20Design%202013-1-23.docx |
Environment | [Proposed] |
Resolution | Accepted: https://www.oasis-open.org/committees/download.php/48005/odata-meeting-22_on-20130124-minutes.html#odata-211 | |
Status | New [ 10000 ] | Closed [ 6 ] |
Component/s | OData Protocol v1.0 [ 10267 ] |
Environment | [Proposed] | [Closed] |
Status | Closed [ 6 ] | Open [ 1 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Applied [ 10002 ] |
Status | Applied [ 10002 ] | Closed [ 6 ] |