ContextSourceRegistration.json 3.81 KB
Newer Older
canterafonsj's avatar
canterafonsj committed
1
2
{
  "$schema": "http://json-schema.org/schema#",
Stefan Wiedemann's avatar
Stefan Wiedemann committed
3
  "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/registrations/ContextSourceRegistration.json",
canterafonsj's avatar
canterafonsj committed
4
5
6
7
8
9
10
11
12
13
  "title": "NGSI-LD Context Source Registration",
  "description": "NGSI-LD Context Source Registration",
  "definitions": {
    "RegistrationInfo": {
      "type": "object",
      "properties": {
        "entities": {
          "type": "array",
          "minItems": 1,
          "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
14
            "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EntityInfo"
canterafonsj's avatar
canterafonsj committed
15
16
17
18
19
20
          }
        },
        "properties": {
          "type": "array",
          "minItems": 1,
          "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
21
            "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name"
canterafonsj's avatar
canterafonsj committed
22
23
24
25
26
27
28
          },
          "uniqueItems": true
        },
        "relationships": {
          "type": "array",
          "minItems": 1,
          "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
29
            "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name"
canterafonsj's avatar
canterafonsj committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
          },
          "uniqueItems": true
        }
      }
    },
    "TimeInterval": {
      "type": "object",
      "required": [
        "start"
      ],
      "properties": {
        "start": {
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
canterafonsj's avatar
canterafonsj committed
51
52
53
54
    "ContextSourceRegistrationFragment": {
      "type": "object",
      "properties": {
        "@context": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
55
          "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
canterafonsj's avatar
canterafonsj committed
56
57
58
59
60
61
62
63
        },
        "information": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/definitions/RegistrationInfo"
          }
        },
64
65
66
67
68
        "observationInterval": {
          "$ref": "#/definitions/TimeInterval"
        },
        "managementInterval": {
          "$ref": "#/definitions/TimeInterval"
canterafonsj's avatar
canterafonsj committed
69
70
        },
        "location": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
71
          "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/Geometry.json#/definitions/Geometry"
72
73
        },
		"observationSpace": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
74
          "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/Geometry.json#/definitions/Geometry"
75
76
        },
		"operationSpace": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
77
          "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/Geometry.json#/definitions/Geometry"
canterafonsj's avatar
canterafonsj committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
        },
        "expires": {
          "type": "string",
          "format": "date-time"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "endpoint": {
          "type": "string",
          "format": "uri"
        }
      },
Stefan Wiedemann's avatar
Stefan Wiedemann committed
96
      "additionalProperties": true
canterafonsj's avatar
canterafonsj committed
97
    },
canterafonsj's avatar
canterafonsj committed
98
99
100
101
102
103
104
105
    "ContextSourceRegistration": {
      "allOf": [
        {
          "$ref": "#/definitions/ContextSourceRegistrationFragment"
        },
        {
          "type": "object",
          "properties": {
106
            "id": {
canterafonsj's avatar
canterafonsj committed
107
108
109
110
111
              "type": "string",
              "format": "uri"
            },
            "type": {
              "type": "string",
Stefan Wiedemann's avatar
Stefan Wiedemann committed
112
              "enum": ["ContextSourceRegistration"]
canterafonsj's avatar
canterafonsj committed
113
114
            },
            "createdAt": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
115
              "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
canterafonsj's avatar
canterafonsj committed
116
117
            },
            "modifiedAt": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
118
              "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
canterafonsj's avatar
canterafonsj committed
119
120
121
122
123
124
125
126
127
128
            }
          },
          "required": [
            "id",
            "type",
            "endpoint",
            "information"
          ]
        }
      ]
canterafonsj's avatar
canterafonsj committed
129
130
    }
  },
canterafonsj's avatar
canterafonsj committed
131
132
133
134
  "allOf": [
    {
      "$ref": "#/definitions/ContextSourceRegistration"
    }
canterafonsj's avatar
canterafonsj committed
135
  ]
136
}