{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"format":{"type":"string","const":"tabletalk-survey"},"formatVersion":{"type":"number","const":1},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":4000},"definition":{"type":"object","properties":{"version":{"type":"integer","const":1},"firstQuestionId":{"type":"string","minLength":1},"submitLabel":{"type":"string","minLength":1},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string"}},"required":["id","title"],"additionalProperties":false}},"questions":{"minItems":1,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string"},"exampleText":{"type":"string","minLength":1,"maxLength":800},"endSurvey":{"type":"boolean"},"required":{"type":"boolean"},"nextQuestionId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"showIf":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"equals":{"type":"string"},"includes":{"type":"string"}},"required":["questionId"],"additionalProperties":false},"sectionId":{"type":"string","minLength":1},"type":{"type":"string","const":"single_select"},"options":{"minItems":1,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1},"value":{"type":"string","minLength":1},"helpText":{"type":"string","minLength":1,"maxLength":500},"imageUrl":{"type":"string","minLength":1,"maxLength":2000},"nextQuestionId":{"type":"string","minLength":1}},"required":["label","value"],"additionalProperties":false}}},"required":["id","title","type","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string"},"exampleText":{"type":"string","minLength":1,"maxLength":800},"endSurvey":{"type":"boolean"},"required":{"type":"boolean"},"nextQuestionId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"showIf":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"equals":{"type":"string"},"includes":{"type":"string"}},"required":["questionId"],"additionalProperties":false},"sectionId":{"type":"string","minLength":1},"type":{"type":"string","const":"multi_select"},"options":{"minItems":1,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1},"value":{"type":"string","minLength":1},"helpText":{"type":"string","minLength":1,"maxLength":500},"imageUrl":{"type":"string","minLength":1,"maxLength":2000},"nextQuestionId":{"type":"string","minLength":1}},"required":["label","value"],"additionalProperties":false}},"minSelected":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxSelected":{"type":"integer","minimum":1,"maximum":9007199254740991},"insightsView":{"type":"string","enum":["ranked_checklist","selection_tiles","agreement_spotlight","agreement_matrix","summary_table"]}},"required":["id","title","type","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string"},"exampleText":{"type":"string","minLength":1,"maxLength":800},"endSurvey":{"type":"boolean"},"required":{"type":"boolean"},"nextQuestionId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"showIf":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"equals":{"type":"string"},"includes":{"type":"string"}},"required":["questionId"],"additionalProperties":false},"sectionId":{"type":"string","minLength":1},"type":{"type":"string","const":"image_select"},"options":{"minItems":1,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1},"value":{"type":"string","minLength":1},"helpText":{"type":"string","minLength":1,"maxLength":500},"imageUrl":{"type":"string","minLength":1,"maxLength":2000},"nextQuestionId":{"type":"string","minLength":1}},"required":["label","value"],"additionalProperties":false}},"minSelected":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxSelected":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","title","type","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string"},"exampleText":{"type":"string","minLength":1,"maxLength":800},"endSurvey":{"type":"boolean"},"required":{"type":"boolean"},"nextQuestionId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"showIf":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"equals":{"type":"string"},"includes":{"type":"string"}},"required":["questionId"],"additionalProperties":false},"sectionId":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email"]},"maxLength":{"type":"integer","minimum":1,"maximum":20000}},"required":["id","title","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string"},"exampleText":{"type":"string","minLength":1,"maxLength":800},"endSurvey":{"type":"boolean"},"required":{"type":"boolean"},"nextQuestionId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"showIf":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"equals":{"type":"string"},"includes":{"type":"string"}},"required":["questionId"],"additionalProperties":false},"sectionId":{"type":"string","minLength":1},"type":{"type":"string","enum":["text_list","word_list"]},"itemCount":{"type":"integer","minimum":1,"maximum":20},"itemLabel":{"type":"string","minLength":1,"maxLength":80},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"insightsView":{"type":"string","enum":["ranked_bars","word_cloud","spotlight","bubbles","themes"]}},"required":["id","title","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string"},"exampleText":{"type":"string","minLength":1,"maxLength":800},"endSurvey":{"type":"boolean"},"required":{"type":"boolean"},"nextQuestionId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"showIf":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"equals":{"type":"string"},"includes":{"type":"string"}},"required":["questionId"],"additionalProperties":false},"sectionId":{"type":"string","minLength":1},"type":{"type":"string","const":"semantic_scale"},"scalePoints":{"type":"integer","minimum":2,"maximum":10},"pairs":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"left":{"type":"string","minLength":1,"maxLength":120},"right":{"type":"string","minLength":1,"maxLength":120}},"required":["id","left","right"],"additionalProperties":false}},"insightsView":{"type":"string","enum":["emphasis","statement","weighted_bar","outcome_card"]}},"required":["id","title","type","pairs"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string"},"exampleText":{"type":"string","minLength":1,"maxLength":800},"endSurvey":{"type":"boolean"},"required":{"type":"boolean"},"nextQuestionId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"showIf":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"equals":{"type":"string"},"includes":{"type":"string"}},"required":["questionId"],"additionalProperties":false},"sectionId":{"type":"string","minLength":1},"type":{"type":"string","const":"info"}},"required":["id","title","type"],"additionalProperties":false}]},"maxItems":100}},"required":["version","firstQuestionId","questions"],"additionalProperties":false}},"required":["format","formatVersion","title","definition"],"additionalProperties":false}