Commit 91c7cf53 authored by canterafonsj's avatar canterafonsj
Browse files

Getting closer

parent 9a59ea70
Loading
Loading
Loading
Loading
+160 −164
Original line number Original line Diff line number Diff line
@@ -6,11 +6,6 @@
  "definitions": {
  "definitions": {
    "NotificationParams": {
    "NotificationParams": {
      "type": "object",
      "type": "object",
      "properties": {
        "type": "object",
        "required": [
          "endpoint"
        ],
      "properties": {
      "properties": {
        "attributes": {
        "attributes": {
          "type": "array",
          "type": "array",
@@ -23,7 +18,7 @@
          "type": "string"
          "type": "string"
        },
        },
        "endpoint": {
        "endpoint": {
            "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EndPoint"
          "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Endpoint"
        },
        },
        "status": {
        "status": {
          "type": "string",
          "type": "string",
@@ -48,9 +43,14 @@
          "type": "string",
          "type": "string",
          "format": "date-time"
          "format": "date-time"
        }
        }
        }
      },
      },
      "EntityInfo": {},
      "required": [
        "endpoint"
      ]
    },
    "EntityInfo": {
      "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EntityInfo"
    },
    "GeoQuery": {
    "GeoQuery": {
      "type": "object",
      "type": "object",
      "required": [
      "required": [
@@ -121,6 +121,9 @@
    "@context": {
    "@context": {
      "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
      "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
    },
    },
    "entities": {
      "$ref": "#/definitions/EntityInfo"
    },
    "name": {
    "name": {
      "type": "string",
      "type": "string",
      "minLength": 1
      "minLength": 1
@@ -129,8 +132,8 @@
      "type": "string",
      "type": "string",
      "minLength": 1
      "minLength": 1
    },
    },
      "entities": {
    "notification": {
        "$ref": "#/definitions/EntityInfo"
      "$ref": "#/definitions/NotificationParams"
    },
    },
    "watchedAttributes": {
    "watchedAttributes": {
      "type": "array",
      "type": "array",
@@ -144,12 +147,6 @@
      "type": "number",
      "type": "number",
      "minimum": 0
      "minimum": 0
    },
    },
      "geoQ": {
        "$ref": "#/definitions/GeoQuery"
      },
      "notification": {
        "$ref": "#/definitions/NotificationParams"
      },
    "expires": {
    "expires": {
      "type": "string",
      "type": "string",
      "format": "date-time"
      "format": "date-time"
@@ -181,4 +178,3 @@
    "type"
    "type"
  ]
  ]
}
}
}
+37 −0
Original line number Original line Diff line number Diff line
@@ -61,6 +61,43 @@
          ]
          ]
        }
        }
      }
      }
    },
    "EntityInfo": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "id"
          ],
          "properties": {
            "id": {
              "type": "string"
            }
          }
        },
        {
          "type": "object",
          "required": [
            "idPattern"
          ],
          "properties": {
            "idPattern": {
              "type": "string"
            }
          }
        },
        {
          "type": "object",
          "required": [
            "type"
          ],
          "properties": {
            "type": {
              "type": "string"
            }
          }
        }
      ]
    }
    }
  }
  }
}
}