Skip to content

Commit 7c45cff

Browse files
committed
docs: new dispute template schema improvement
1 parent f5ad219 commit 7c45cff

File tree

1 file changed

+71
-8
lines changed

1 file changed

+71
-8
lines changed

kleros-sdk/config/v2-disputetemplate/NewDisputeTemplate.schema.json

Lines changed: 71 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
],
1818
"additionalProperties": false,
1919
"properties": {
20+
"$schema": {
21+
"description": "JSON Schema URI (used by some editors)",
22+
"type": "string",
23+
"default": "NewDisputeTemplate.schema.json"
24+
},
2025
"category": {
2126
"type": "string",
2227
"default": "",
@@ -135,11 +140,13 @@
135140
{
136141
"id": "0x01",
137142
"title": "Yes",
143+
"description": "Accept the request.",
138144
"reserved": false
139145
},
140146
{
141147
"id": "0x02",
142148
"title": "No",
149+
"description": "Refuse the request.",
143150
"reserved": false
144151
}
145152
],
@@ -149,10 +156,30 @@
149156
"default": {},
150157
"title": "A Schema",
151158
"required": [
152-
"id",
153-
"title",
154-
"reserved"
159+
"title"
155160
],
161+
"dependentSchemas": {
162+
"id": {
163+
"properties": {
164+
"reserved": {
165+
"const": true
166+
}
167+
}
168+
}
169+
},
170+
"if": {
171+
"properties": {
172+
"reserved": {
173+
"const": true
174+
}
175+
}
176+
},
177+
"then": {
178+
"dependentRequired": {
179+
"id": true
180+
}
181+
},
182+
"additionalProperties": false,
156183
"properties": {
157184
"id": {
158185
"type": "string",
@@ -186,6 +213,45 @@
186213
"Invalid/Refuse to Arbitrate"
187214
]
188215
},
216+
"description": {
217+
"type": "string",
218+
"default": "",
219+
"title": "The description Schema",
220+
"examples": [
221+
"Accept the request to register the entry.",
222+
"Accept the request to remove the entry.",
223+
"Deny the request.",
224+
"Reject the claim if any of the acceptance criteria do not hold.",
225+
"Select this if you think the entry complies with the required criteria and should be added.",
226+
"Select this if you think the entry complies with the required criteria and should not be removed.",
227+
"Select this if you think the entry does not comply with the required criteria and should be removed.",
228+
"Select this if you think the entry does not comply with the required criteria and should not be added.",
229+
"Select this if you think the list complies with the required criteria and should be added.",
230+
"Select this if you think the list complies with the required criteria and should not be removed.",
231+
"Select this if you think the list does not comply with the required criteria and should be removed.",
232+
"Select this if you think the list does not comply with the required criteria and should not be added.",
233+
"Select this if you think the market complies with the required criteria and should be added.",
234+
"Select this if you think the market complies with the required criteria and should not be removed.",
235+
"Select this if you think the market does not comply with the required criteria and should be removed.",
236+
"Select this if you think the market does not comply with the required criteria and should not be added.",
237+
"Select this if you think the token and project comply with the required criteria and the badge should be added.",
238+
"Select this if you think the token and project comply with the required criteria and the badge should be kept.",
239+
"Select this if you think the token and/or project do(es) not comply with the required criteria and the badge should be removed.",
240+
"Select this if you think the token and/or project do(es) not comply with the required criteria and the badge should not be added.",
241+
"Select this if you think the token information is correct and the token should be added to the registry.",
242+
"Select this if you think the token information is correct and the token should not be removed from the registry.",
243+
"Select this if you think the token information is incorrect and the token should be not be added to the registry.",
244+
"Select this if you think the token information is incorrect and the token should be removed from the registry.",
245+
"Select this if you think the translation complies with the required criteria.",
246+
"Select this if you think the translation does not comply with the required criteria.",
247+
"Select this if you think the validator complies with the required criteria and should be added.",
248+
"Select this if you think the validator complies with the required criteria and should not be removed.",
249+
"Select this if you think the validator does not comply with the required criteria and should be removed.",
250+
"Select this if you think the validator does not comply with the required criteria and should not be added.",
251+
"Select to release funds to the Receiver",
252+
"Select to return funds to the Sender"
253+
]
254+
},
189255
"reserved": {
190256
"type": "boolean",
191257
"default": false,
@@ -202,19 +268,16 @@
202268
"title": "Answered Too Soon",
203269
"reserved": true
204270
},
205-
{
206-
"id": "0x00",
207-
"title": "Invalid/Refuse to Arbitrate",
208-
"reserved": true
209-
},
210271
{
211272
"id": "0x01",
212273
"title": "Yes",
274+
"description": "Accept the request.",
213275
"reserved": false
214276
},
215277
{
216278
"id": "0x02",
217279
"title": "No",
280+
"description": "Refuse the request.",
218281
"reserved": false
219282
}
220283
]

0 commit comments

Comments
 (0)