Commit 6cfb8973 authored by canterafonsj's avatar canterafonsj
Browse files

Entity now is a definition

parent 0fa762bf
Loading
Loading
Loading
Loading
+60 −47
Original line number Diff line number Diff line
@@ -20,7 +20,13 @@
          "const": "Property"
        },
        "value": {
          "type": ["string","number","boolean","array","object"]
          "type": [
            "string",
            "number",
            "boolean",
            "array",
            "object"
          ]
        },
        "observedAt": {
          "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
@@ -135,8 +141,8 @@
          }
        ]
      }
    }
    },
    "Entity": {
      "type": "object",
      "properties": {
        "id": {
@@ -187,3 +193,10 @@
        "pattern": "^((\\d|[a-zA-Z]|_)+(#\\d+)?)$|^(@context)$"
      }
    }
  },
    "allOf": [
      {
        "$ref": "#/definitions/Entity"
      }
    ]
}
 No newline at end of file