Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-211

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: Protocol
    • Labels:
      None
    • Environment:

      [Closed]

      Description

      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')" }

      ]
      }
      """

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo
              Reporter:
              sdrees Stefan Hagen
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: