Skip to content

Commit c8001c3

Browse files
Merge pull request #25 from TaskarCenterAtUW/quest-definition-schema-3.0.0
Quest Definition Schema Version 3.0.0
2 parents fc24d55 + fe51a3c commit c8001c3

File tree

48 files changed

+409
-321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+409
-321
lines changed

docs/quest-definition/example.json

Lines changed: 59 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.0.0",
2+
"version": "3.0.0",
33
"elements": [
44
{
55
"element_type": "Sidewalks",
@@ -187,6 +187,53 @@
187187
"choice_text": "No"
188188
}
189189
]
190+
},
191+
{
192+
"quest_id": 10,
193+
"quest_title": "What amenities are available along this sidewalk?",
194+
"quest_description": "Select all amenities that are present along this sidewalk",
195+
"quest_type": "MultipleChoice",
196+
"quest_tag": "amenity",
197+
"quest_answer_choices": [
198+
{
199+
"value": "benches",
200+
"choice_text": "Benches",
201+
"image_url": "http://some_url.com/image.jpg"
202+
},
203+
{
204+
"value": "trash_bins",
205+
"choice_text": "Trash bins",
206+
"image_url": "http://some_url.com/image.jpg"
207+
},
208+
{
209+
"value": "water_fountains",
210+
"choice_text": "Water fountains",
211+
"image_url": "http://some_url.com/image.jpg"
212+
},
213+
{
214+
"value": "bike_racks",
215+
"choice_text": "Bike racks",
216+
"image_url": "http://some_url.com/image.jpg"
217+
},
218+
{
219+
"value": "shade_structures",
220+
"choice_text": "Shade structures",
221+
"image_url": "http://some_url.com/image.jpg"
222+
},
223+
{
224+
"value": "public_art",
225+
"choice_text": "Public art",
226+
"image_url": "http://some_url.com/image.jpg"
227+
}
228+
]
229+
},
230+
{
231+
"quest_id": 11,
232+
"quest_title": "Are there any other notable features or issues with this sidewalk?",
233+
"quest_description": "Please describe any other notable features or issues with this sidewalk that were not covered in the previous questions.",
234+
"quest_image_url": "http://some_url.com/image.jpg",
235+
"quest_type": "TextEntry",
236+
"quest_tag": "sidewalk_notes"
190237
}
191238
]
192239
},
@@ -319,10 +366,7 @@
319366
],
320367
"quest_answer_dependency": {
321368
"question_id": 4,
322-
"required_value": [
323-
"1",
324-
"2"
325-
]
369+
"required_value": ["1", "2"]
326370
}
327371
},
328372
{
@@ -491,10 +535,16 @@
491535
"image_url": "http://some_url.com/image.jpg"
492536
}
493537
],
494-
"quest_answer_dependency": {
495-
"question_id": 4,
496-
"required_value": "yes"
497-
}
538+
"quest_answer_dependency": [
539+
{
540+
"question_id": 4,
541+
"required_value": "yes"
542+
},
543+
{
544+
"question_id": 5,
545+
"required_value": "yes"
546+
}
547+
]
498548
},
499549
{
500550
"quest_id": 7,

0 commit comments

Comments
 (0)