Subversion Repositories oidplus

Rev

Rev 635 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 635 Rev 758
1
{
1
{
2
   "$schema":"http://json-schema.org/draft-07/schema#",
2
   "$schema":"http://json-schema.org/draft-07/schema#",
3
   "type":"object",
3
   "type":"object",
4
   "properties":{
4
   "properties":{
5
      "whois":{
5
      "oidip":{
6
         "type":"array",
6
         "type":"array",
7
         "items":[
7
         "items":[
8
            {
8
            {
9
               "type":"object",
9
               "type":"object",
10
               "properties":{
10
               "properties":{
11
                  "query":{
11
                  "query":{
12
                     "type":"string"
12
                     "type":"string"
13
                  },
13
                  },
14
                  "result":{
14
                  "result":{
15
                     "type":"string",
15
                     "type":"string",
16
                     "enum":["Found", "Not found; superior object found", "Not found", "Service error"]
16
                     "enum":["Found", "Not found; superior object found", "Not found", "Service error"]
17
                  },
17
                  },
18
                  "distance":{
18
                  "distance":{
19
                     "type":"string"
19
                     "type":"string"
20
                  },
20
                  },
21
                  "message":{
21
                  "message":{
22
                     "type":"string"
22
                     "type":"string"
23
                  }
23
                  }
24
               },
24
               },
25
               "required":[
25
               "required":[
26
                  "query",
26
                  "query",
27
                  "result"
27
                  "result"
28
               ]
28
               ]
29
            },
29
            },
30
            {
30
            {
31
               "type":"object",
31
               "type":"object",
32
               "properties":{
32
               "properties":{
33
                  "object":{
33
                  "object":{
34
                     "type":"string"
34
                     "type":"string"
35
                  },
35
                  },
36
                  "status":{
36
                  "status":{
37
                     "type":"string",
37
                     "type":"string",
38
                     "enum":["Information available", "Information partially available", "Information unavailable"]
38
                     "enum":["Information available", "Information partially available", "Information unavailable"]
39
                  },
39
                  },
40
                  "name":{
40
                  "name":{
41
                     "type":"string"
41
                     "type":"string"
42
                  },
42
                  },
43
                  "description":{
43
                  "description":{
44
                     "type":"string"
44
                     "type":"string"
45
                  },
45
                  },
46
                  "information":{
46
                  "information":{
47
                     "type":"string"
47
                     "type":"string"
48
                  },
48
                  },
49
                  "url":{
49
                  "url":{
50
                     "type":"string"
50
                     "type":"string"
51
                  },
51
                  },
52
                  "asn1-notation":{
52
                  "asn1-notation":{
53
                     "oneOf":[
53
                     "oneOf":[
54
                        {
54
                        {
55
                           "type":"string"
55
                           "type":"string"
56
                        },
56
                        },
57
                        {
57
                        {
58
                           "type":"array",
58
                           "type":"array",
59
                           "items":{
59
                           "items":{
60
                              "type":"string"
60
                              "type":"string"
61
                           }
61
                           }
62
                        }
62
                        }
63
                     ]
63
                     ]
64
                  },
64
                  },
65
                  "iri-notation":{
65
                  "iri-notation":{
66
                     "oneOf":[
66
                     "oneOf":[
67
                        {
67
                        {
68
                           "type":"string"
68
                           "type":"string"
69
                        },
69
                        },
70
                        {
70
                        {
71
                           "type":"array",
71
                           "type":"array",
72
                           "items":{
72
                           "items":{
73
                              "type":"string"
73
                              "type":"string"
74
                           }
74
                           }
75
                        }
75
                        }
76
                     ]
76
                     ]
77
                  },
77
                  },
78
                  "identifier":{
78
                  "identifier":{
79
                     "oneOf":[
79
                     "oneOf":[
80
                        {
80
                        {
81
                           "type":"string"
81
                           "type":"string"
82
                        },
82
                        },
83
                        {
83
                        {
84
                           "type":"array",
84
                           "type":"array",
85
                           "items":{
85
                           "items":{
86
                              "type":"string"
86
                              "type":"string"
87
                           }
87
                           }
88
                        }
88
                        }
89
                     ]
89
                     ]
90
                  },
90
                  },
91
                  "standardized-id":{
91
                  "standardized-id":{
92
                     "oneOf":[
92
                     "oneOf":[
93
                        {
93
                        {
94
                           "type":"string"
94
                           "type":"string"
95
                        },
95
                        },
96
                        {
96
                        {
97
                           "type":"array",
97
                           "type":"array",
98
                           "items":{
98
                           "items":{
99
                              "type":"string"
99
                              "type":"string"
100
                           }
100
                           }
101
                        }
101
                        }
102
                     ]
102
                     ]
103
                  },
103
                  },
104
                  "unicode-label":{
104
                  "unicode-label":{
105
                     "oneOf":[
105
                     "oneOf":[
106
                        {
106
                        {
107
                           "type":"string"
107
                           "type":"string"
108
                        },
108
                        },
109
                        {
109
                        {
110
                           "type":"array",
110
                           "type":"array",
111
                           "items":{
111
                           "items":{
112
                              "type":"string"
112
                              "type":"string"
113
                           }
113
                           }
114
                        }
114
                        }
115
                     ]
115
                     ]
116
                  },
116
                  },
117
                  "long-arc":{
117
                  "long-arc":{
118
                     "oneOf":[
118
                     "oneOf":[
119
                        {
119
                        {
120
                           "type":"string"
120
                           "type":"string"
121
                        },
121
                        },
122
                        {
122
                        {
123
                           "type":"array",
123
                           "type":"array",
124
                           "items":{
124
                           "items":{
125
                              "type":"string"
125
                              "type":"string"
126
                           }
126
                           }
127
                        }
127
                        }
128
                     ]
128
                     ]
129
                  },
129
                  },
130
                  "whois-service":{
130
                  "oidip-service":{
131
                     "type":"string"
131
                     "type":"string"
132
                  },
132
                  },
133
                  "attribute":{
133
                  "attribute":{
134
                     "oneOf":[
134
                     "oneOf":[
135
                        {
135
                        {
136
                           "type":"string",
136
                           "type":"string",
137
                           "enum":["confidential", "draft", "frozen", "leaf", "no-identifiers", "no-unicode-labels", "retired"]
137
                           "enum":["confidential", "draft", "frozen", "leaf", "no-identifiers", "no-unicode-labels", "retired"]
138
                        },
138
                        },
139
                        {
139
                        {
140
                           "type":"array",
140
                           "type":"array",
141
                           "items":{
141
                           "items":{
142
                              "type":"string",
142
                              "type":"string",
143
                              "enum":["confidential", "draft", "frozen", "leaf", "no-identifiers", "no-unicode-labels", "retired"]
143
                              "enum":["confidential", "draft", "frozen", "leaf", "no-identifiers", "no-unicode-labels", "retired"]
144
                           }
144
                           }
145
                        }
145
                        }
146
                     ]
146
                     ]
147
                  },
147
                  },
148
                  "attachment-name":{
148
                  "attachment-name":{
149
                     "oneOf":[
149
                     "oneOf":[
150
                        {
150
                        {
151
                           "type":"string"
151
                           "type":"string"
152
                        },
152
                        },
153
                        {
153
                        {
154
                           "type":"array",
154
                           "type":"array",
155
                           "items":{
155
                           "items":{
156
                              "type":"string"
156
                              "type":"string"
157
                           }
157
                           }
158
                        }
158
                        }
159
                     ]
159
                     ]
160
                  },
160
                  },
161
                  "attachment-url":{
161
                  "attachment-url":{
162
                     "oneOf":[
162
                     "oneOf":[
163
                        {
163
                        {
164
                           "type":"string"
164
                           "type":"string"
165
                        },
165
                        },
166
                        {
166
                        {
167
                           "type":"array",
167
                           "type":"array",
168
                           "items":{
168
                           "items":{
169
                              "type":"string"
169
                              "type":"string"
170
                           }
170
                           }
171
                        }
171
                        }
172
                     ]
172
                     ]
173
                  },
173
                  },
174
                  "parent":{
174
                  "parent":{
175
                     "type":"string"
175
                     "type":"string"
176
                  },
176
                  },
177
                  "subordinate":{
177
                  "subordinate":{
178
                     "oneOf":[
178
                     "oneOf":[
179
                        {
179
                        {
180
                           "type":"string"
180
                           "type":"string"
181
                        },
181
                        },
182
                        {
182
                        {
183
                           "type":"array",
183
                           "type":"array",
184
                           "items":{
184
                           "items":{
185
                              "type":"string"
185
                              "type":"string"
186
                           }
186
                           }
187
                        }
187
                        }
188
                     ]
188
                     ]
189
                  },
189
                  },
190
                  "created":{
190
                  "created":{
191
                     "type":"string",
191
                     "type":"string",
192
                     "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
192
                     "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
193
                  },
193
                  },
194
                  "updated":{
194
                  "updated":{
195
                     "type":"string",
195
                     "type":"string",
196
                     "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
196
                     "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
197
                  }
197
                  }
198
               },
198
               },
199
               "required":[
199
               "required":[
200
                  "object",
200
                  "object",
201
                  "status"
201
                  "status"
202
               ]
202
               ]
203
            },
203
            },
204
            {
204
            {
205
               "type":"object",
205
               "type":"object",
206
               "properties":{
206
               "properties":{
207
                  "ra":{
207
                  "ra":{
208
                     "type":"string"
208
                     "type":"string"
209
                  },
209
                  },
210
                  "ra-status":{
210
                  "ra-status":{
211
                     "type":"string",
211
                     "type":"string",
212
                     "enum":["Information available", "Information partially available", "Information unavailable"]
212
                     "enum":["Information available", "Information partially available", "Information unavailable"]
213
                  },
213
                  },
214
                  "ra-contact-name":{
214
                  "ra-contact-name":{
215
                     "type":"string"
215
                     "type":"string"
216
                  },
216
                  },
217
                  "ra-address":{
217
                  "ra-address":{
218
                     "type":"string"
218
                     "type":"string"
219
                  },
219
                  },
220
                  "ra-phone":{
220
                  "ra-phone":{
221
                     "type":"string"
221
                     "type":"string"
222
                  },
222
                  },
223
                  "ra-mobile":{
223
                  "ra-mobile":{
224
                     "type":"string"
224
                     "type":"string"
225
                  },
225
                  },
226
                  "ra-fax":{
226
                  "ra-fax":{
227
                     "type":"string"
227
                     "type":"string"
228
                  },
228
                  },
229
                  "ra-email":{
229
                  "ra-email":{
230
                     "type":"string"
230
                     "type":"string"
231
                  },
231
                  },
232
                  "ra-url":{
232
                  "ra-url":{
233
                     "type":"string"
233
                     "type":"string"
234
                  },
234
                  },
235
                  "ra-attribute":{
235
                  "ra-attribute":{
236
                     "oneOf":[
236
                     "oneOf":[
237
                        {
237
                        {
238
                           "type":"string",
238
                           "type":"string",
239
                           "enum":["confidential", "retired"]
239
                           "enum":["confidential", "retired"]
240
                        },
240
                        },
241
                        {
241
                        {
242
                           "type":"array",
242
                           "type":"array",
243
                           "items":{
243
                           "items":{
244
                              "type":"string",
244
                              "type":"string",
245
                              "enum":["confidential", "retired"]
245
                              "enum":["confidential", "retired"]
246
                           }
246
                           }
247
                        }
247
                        }
248
                     ]
248
                     ]
249
                  },
249
                  },
250
                  "ra-created":{
250
                  "ra-created":{
251
                     "type":"string",
251
                     "type":"string",
252
                     "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
252
                     "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
253
                  },
253
                  },
254
                  "ra-updated":{
254
                  "ra-updated":{
255
                     "type":"string",
255
                     "type":"string",
256
                     "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
256
                     "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
257
                  }
257
                  }
258
               },
258
               },
259
               "required":[
259
               "required":[
260
                  "ra",
260
                  "ra",
261
                  "ra-status"
261
                  "ra-status"
262
               ]
262
               ]
263
            }
263
            }
264
         ]
264
         ]
265
      },
265
      },
266
      "signature":{
266
      "signature":{
267
         "type":"object",
267
         "type":"object",
268
         "properties":{
268
         "properties":{
269
            "content":{
269
            "content":{
270
               "type":"string"
270
               "type":"string"
271
            },
271
            },
272
            "signature":{
272
            "signature":{
273
               "type":"string"
273
               "type":"string"
274
            }
274
            }
275
         },
275
         },
276
         "required":[
276
         "required":[
277
            "content",
277
            "content",
278
            "signature"
278
            "signature"
279
         ]
279
         ]
280
      }
280
      }
281
   },
281
   },
282
   "required":[
282
   "required":[
283
      "whois"
283
      "oidip"
284
   ]
284
   ]
285
}
285
}
286
 
286