Subversion Repositories oidplus

Rev

Rev 764 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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