OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Created: (ODATA-211) Correct the sample inside section "JSON DeltaQuery Result Example" inside ODQP proposal pages 9/10


Correct the sample inside section "JSON DeltaQuery Result Example" inside ODQP proposal pages 9/10
--------------------------------------------------------------------------------------------------

                 Key: ODATA-211
                 URL: http://tools.oasis-open.org/issues/browse/ODATA-211
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Bug
    Affects Versions: WD01
            Reporter: Stefan Drees
            Assignee: Michael Pizzo
            Priority: Minor
             Fix For: WD01


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": "Northwind.Customer",
      "odata.id": "http://DeltaService.svc/Customers('BOTTM')'",
      "ContactName": "Susan Halvenstern"
    },
    {
      "odata.type": "odata.deletedLinkEntry",
      "ref": "http://DeltaService.svc/Customers(ALFKI)'",
      "when": "2012-11-07T15:38",
      "relationship": "Orders",
      "related": "http://DeltaService.svc/Orders(10643)"
    },
    {
      "odata.type": "odata.linkEntry",
      "ref": "http://DeltaService.svc/Customers('BOTTM')",
      "relationship": "Orders",
      "related": "http://DeltaService.svc/Orders(10643)"
    },
    {
      "odata.type": "odata.linkEntry",
      "ref": "http://DeltaService.svc/Orders(10643)",
      "relationship": "Customer",
      "related": "http://DeltaService.svc/Customers('BOTTM')"
    },
    {
      "odata.type": "Northwind.Order",
      "ShipName": "Bottom-Dollar Markets",
      "ShipPostalCode": "T2F 8M4",
      "ShipRegion": "BC",
      "ShipCountry": "Canada",
      "odata.id": "http://DeltaService.svc/Orders(10643)",
      "ShipAddress": "23 Tsawassen Blvd."
    },
    {
      "odata.type": "odata.deletedEntry",
      "reason": "deleted",
      "when": "2012-11-07T15:38",
      "odata.id": "http://DeltaService.svc/Customers('ALFKI')"
    }
  ]
}
""" 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]