|
1 | 1 | { |
2 | 2 | "$schema": "https://json-schema.org/draft/2019-09/schema", |
3 | | - "$id": "dispute-details.schema.json", |
| 3 | + "$id": "DisputeDetails.reality.schema.json", |
4 | 4 | "title": "Root Schema", |
5 | 5 | "description": "The root schema is the schema that comprises the entire JSON document.", |
6 | 6 | "type": "object", |
7 | 7 | "default": {}, |
8 | 8 | "required": [ |
9 | 9 | "category", |
| 10 | + "lang", |
10 | 11 | "title", |
11 | 12 | "description", |
12 | 13 | "question", |
|
19 | 20 | "arbitratorChainID", |
20 | 21 | "arbitratorAddress", |
21 | 22 | "specification", |
22 | | - "metadata" |
| 23 | + "metadata", |
| 24 | + "externalDisputeID", |
| 25 | + "arbitrableDisputeID", |
| 26 | + "arbitratorDisputeID", |
| 27 | + "disputeTemplateID", |
| 28 | + "disputeTemplateHash" |
23 | 29 | ], |
24 | | - "additionalProperties": true, |
| 30 | + "additionalProperties": false, |
25 | 31 | "properties": { |
26 | 32 | "category": { |
27 | 33 | "title": "The category Schema", |
|
32 | 38 | "Oracle" |
33 | 39 | ] |
34 | 40 | }, |
| 41 | + "lang": { |
| 42 | + "type": "string", |
| 43 | + "default": "", |
| 44 | + "title": "The lang Schema", |
| 45 | + "examples": [ |
| 46 | + "en_US" |
| 47 | + ] |
| 48 | + }, |
35 | 49 | "title": { |
36 | 50 | "title": "The title Schema", |
37 | 51 | "description": "An explanation about the purpose of this instance.", |
|
211 | 225 | ] |
212 | 226 | }, |
213 | 227 | "metadata": { |
214 | | - "title": "The metadata Schema", |
215 | | - "description": "An explanation about the purpose of this instance.", |
216 | 228 | "type": "object", |
217 | 229 | "default": {}, |
| 230 | + "title": "The metadata Schema", |
218 | 231 | "required": [ |
219 | 232 | "realityAddress", |
220 | 233 | "realityTemplateID", |
221 | 234 | "realityQuestionID", |
222 | 235 | "realityUser", |
| 236 | + "realityType", |
223 | 237 | "realityCategory", |
224 | 238 | "realityLang", |
| 239 | + "realityFormat", |
225 | 240 | "realityTimeout", |
226 | 241 | "realityOpeningTime", |
227 | 242 | "realityCreationTime", |
228 | | - "realityFrontendUrl" |
| 243 | + "realityNonce" |
229 | 244 | ], |
230 | | - "additionalProperties": true, |
231 | 245 | "properties": { |
232 | 246 | "realityAddress": { |
233 | | - "title": "The realityAddress Schema", |
234 | | - "description": "An explanation about the purpose of this instance.", |
235 | 247 | "type": "string", |
236 | 248 | "default": "", |
| 249 | + "title": "The realityAddress Schema", |
237 | 250 | "examples": [ |
238 | 251 | "0xe78996a233895be74a66f451f1019ca9734205cc" |
239 | 252 | ] |
240 | 253 | }, |
241 | 254 | "realityTemplateID": { |
242 | | - "title": "The realityTemplateID Schema", |
243 | | - "description": "An explanation about the purpose of this instance.", |
244 | 255 | "type": "string", |
245 | 256 | "default": "", |
| 257 | + "title": "The realityTemplateID Schema", |
246 | 258 | "examples": [ |
247 | 259 | "76" |
248 | 260 | ] |
249 | 261 | }, |
250 | 262 | "realityQuestionID": { |
251 | | - "title": "The realityQuestionID Schema", |
252 | | - "description": "An explanation about the purpose of this instance.", |
253 | 263 | "type": "string", |
254 | 264 | "default": "", |
| 265 | + "title": "The realityQuestionID Schema", |
255 | 266 | "examples": [ |
256 | 267 | "0xe2a3bd38e3ad4e22336ac35b221bbbdd808d716209f84014c7bc3bf62f8e3b39" |
257 | 268 | ] |
258 | 269 | }, |
259 | 270 | "realityUser": { |
260 | | - "title": "The realityUser Schema", |
261 | | - "description": "An explanation about the purpose of this instance.", |
262 | 271 | "type": "string", |
263 | 272 | "default": "", |
| 273 | + "title": "The realityUser Schema", |
264 | 274 | "examples": [ |
265 | 275 | "0xe0441ecf50205d3548456b29fde2a3010f9a61f3" |
266 | 276 | ] |
267 | 277 | }, |
| 278 | + "realityType": { |
| 279 | + "type": "string", |
| 280 | + "default": "", |
| 281 | + "title": "The realityType Schema", |
| 282 | + "examples": [ |
| 283 | + "bool" |
| 284 | + ] |
| 285 | + }, |
268 | 286 | "realityCategory": { |
269 | | - "title": "The realityCategory Schema", |
270 | | - "description": "An explanation about the purpose of this instance.", |
271 | 287 | "type": "string", |
272 | 288 | "default": "", |
| 289 | + "title": "The realityCategory Schema", |
273 | 290 | "examples": [ |
274 | 291 | "content moderation" |
275 | 292 | ] |
276 | 293 | }, |
277 | 294 | "realityLang": { |
278 | | - "title": "The realityLang Schema", |
279 | | - "description": "An explanation about the purpose of this instance.", |
280 | 295 | "type": "string", |
281 | 296 | "default": "", |
| 297 | + "title": "The realityLang Schema", |
282 | 298 | "examples": [ |
283 | 299 | "en_US" |
284 | 300 | ] |
285 | 301 | }, |
| 302 | + "realityFormat": { |
| 303 | + "type": "string", |
| 304 | + "default": "", |
| 305 | + "title": "The realityFormat Schema", |
| 306 | + "examples": [ |
| 307 | + "text/markdown" |
| 308 | + ] |
| 309 | + }, |
286 | 310 | "realityTimeout": { |
287 | | - "title": "The realityTimeout Schema", |
288 | | - "description": "An explanation about the purpose of this instance.", |
289 | 311 | "type": "string", |
290 | 312 | "default": "", |
| 313 | + "title": "The realityTimeout Schema", |
291 | 314 | "examples": [ |
292 | 315 | "86400" |
293 | 316 | ] |
294 | 317 | }, |
295 | 318 | "realityOpeningTime": { |
296 | | - "title": "The realityOpeningTime Schema", |
297 | | - "description": "An explanation about the purpose of this instance.", |
298 | 319 | "type": "string", |
299 | 320 | "default": "", |
| 321 | + "title": "The realityOpeningTime Schema", |
300 | 322 | "examples": [ |
301 | 323 | "1681263978" |
302 | 324 | ] |
303 | 325 | }, |
304 | 326 | "realityCreationTime": { |
305 | | - "title": "The realityCreationTime Schema", |
306 | | - "description": "An explanation about the purpose of this instance.", |
307 | 327 | "type": "string", |
308 | 328 | "default": "", |
| 329 | + "title": "The realityCreationTime Schema", |
309 | 330 | "examples": [ |
310 | 331 | "1681263995" |
311 | 332 | ] |
312 | 333 | }, |
313 | | - "realityFrontendUrl": { |
314 | | - "title": "The realityFrontendUrl Schema", |
315 | | - "description": "An explanation about the purpose of this instance.", |
| 334 | + "realityNonce": { |
316 | 335 | "type": "string", |
317 | 336 | "default": "", |
| 337 | + "title": "The realityNonce Schema", |
318 | 338 | "examples": [ |
319 | | - "https://reality.eth.link/app/#!/question/0xe78996a233895be74a66f451f1019ca9734205cc-0xe2a3bd38e3ad4e22336ac35b221bbbdd808d716209f84014c7bc3bf62f8e3b39" |
| 339 | + "3" |
320 | 340 | ] |
321 | 341 | } |
322 | 342 | }, |
|
326 | 346 | "realityTemplateID": "76", |
327 | 347 | "realityQuestionID": "0xe2a3bd38e3ad4e22336ac35b221bbbdd808d716209f84014c7bc3bf62f8e3b39", |
328 | 348 | "realityUser": "0xe0441ecf50205d3548456b29fde2a3010f9a61f3", |
| 349 | + "realityType": "bool", |
329 | 350 | "realityCategory": "content moderation", |
330 | 351 | "realityLang": "en_US", |
| 352 | + "realityFormat": "text/markdown", |
331 | 353 | "realityTimeout": "86400", |
332 | 354 | "realityOpeningTime": "1681263978", |
333 | 355 | "realityCreationTime": "1681263995", |
334 | | - "realityFrontendUrl": "https://reality.eth.link/app/#!/question/0xe78996a233895be74a66f451f1019ca9734205cc-0xe2a3bd38e3ad4e22336ac35b221bbbdd808d716209f84014c7bc3bf62f8e3b39" |
| 356 | + "realityNonce": "3" |
335 | 357 | } |
336 | 358 | ] |
| 359 | + }, |
| 360 | + "externalDisputeID": { |
| 361 | + "type": "string", |
| 362 | + "default": "", |
| 363 | + "title": "The externalDisputeID Schema", |
| 364 | + "examples": [ |
| 365 | + "0xe2a3bd38e3ad4e22336ac35b221bbbdd808d716209f84014c7bc3bf62f8e3b39" |
| 366 | + ] |
| 367 | + }, |
| 368 | + "arbitrableDisputeID": { |
| 369 | + "type": "string", |
| 370 | + "default": "", |
| 371 | + "title": "The arbitrableDisputeID Schema", |
| 372 | + "examples": [ |
| 373 | + "245" |
| 374 | + ] |
| 375 | + }, |
| 376 | + "arbitratorDisputeID": { |
| 377 | + "type": "string", |
| 378 | + "default": "", |
| 379 | + "title": "The arbitratorDisputeID Schema", |
| 380 | + "examples": [ |
| 381 | + "4563" |
| 382 | + ] |
| 383 | + }, |
| 384 | + "disputeTemplateID": { |
| 385 | + "type": "string", |
| 386 | + "default": "", |
| 387 | + "title": "The disputeTemplateID Schema", |
| 388 | + "examples": [ |
| 389 | + "42" |
| 390 | + ] |
| 391 | + }, |
| 392 | + "disputeTemplateHash": { |
| 393 | + "type": "string", |
| 394 | + "default": "", |
| 395 | + "title": "The disputeTemplateHash Schema", |
| 396 | + "examples": [ |
| 397 | + "0xB5u9...2240" |
| 398 | + ] |
337 | 399 | } |
338 | 400 | } |
339 | 401 | } |
0 commit comments