Commit 869c752f authored by canterafonsj's avatar canterafonsj
Browse files

Validate Examples

parent a950217d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -65,9 +65,9 @@
      ]
    ]
  },
  "timestamp": {
    "start": " 2017-11-29T14:53:15"
  },
  "timestamp": [{
    "start": "2017-11-29T14:53:15Z"
  }],
  "@context": [
    "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/coreContext/ngsi-ld-core-context.json",
    "http://example.org/cim/commonTerms.jsonld",
+3 −3
Original line number Diff line number Diff line
@@ -11,17 +11,17 @@
    {
      "type": "Property",
      "value": 120,
      "observedAt": "2018-08-01T12:03:00"
      "observedAt": "2018-08-01T12:03:00Z"
    },
    {
      "type": "Property",
      "value": 80,
      "observedAt": "2018-08-01T12:05:00"
      "observedAt": "2018-08-01T12:05:00Z"
    },
    {
      "type": "Property",
      "value": 100,
      "observedAt": "2018-08-01T12:07:00"
      "observedAt": "2018-08-01T12:07:00Z"
    }
  ],
  "@context": [
+3 −3
Original line number Diff line number Diff line
@@ -15,15 +15,15 @@
    "values": [
      [
        120,
        "2018-08-01T12:03:00"
        "2018-08-01T12:03:00Z"
      ],
      [
        80,
        "2018-08-01T12:05:00"
        "2018-08-01T12:05:00Z"
      ],
      [
        100,
        "2018-08-01T12:07:00"
        "2018-08-01T12:07:00Z"
      ]
    ]
  },
+3 −3
Original line number Diff line number Diff line
@@ -59,10 +59,10 @@
      ],
      "properties": {
        "georel": {
          "oneOf": [
          "anyOf": [
            {
              "type": "string",
              "enumeration": [
              "enum": [
                "equals",
                "disjoint",
                "intersects",
@@ -73,7 +73,7 @@
            },
            {
              "type": "string",
              "pattern": "near;(maxDistance==\\d+)|(minDistance==\\d+)$"
              "pattern": "^near;((maxDistance==\\d+)|(minDistance==\\d+))$"
            }
          ]
        },
+4 −0
Original line number Diff line number Diff line
@@ -57,5 +57,9 @@
        "minItems": 1
      }
    ]
  },
   "propertyNames": {
    "type": "string",
    "pattern": "^((\\d|[a-zA-Z]|_)+(#\\d+)?)$|^(@context)$"
  }
}
Loading