{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "AliveformsSchemaPoll",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "question": {
        "type": "string"
      },
      "questionType": {
        "type": "string"
      },
      "photo": {
        "type": "string"
      },
      "collect": {
        "type": "boolean",
        "if": {
          "not": {
            "properties": {
              "questionType": {
                "const": "Information Screen"
              }
            }
          }
        }
      },
      "required": {
        "type": "boolean",
        "if": {
          "not": {
            "properties": {
              "questionType": {
                "enum": [
                  "Information Screen",
                  "Address",
                  "Compound Inputs",
                  "Contact Information"
                ]
              }
            }
          }
        }
      },
      "screenTitleLayout": {
        "type": "string",
        "enum": [
          "Row",
          "Column",
          "Stack"
        ]
      },
      "optionsLayout": {
        "type": "string",
        "enum": [
          "Row",
          "Column"
        ]
      },
      "screenLayout": {
        "type": "string",
        "enum": [
          "Row",
          "Column"
        ]
      },
      "options": {
        "type": "array",
        "if": {
          "properties": {
            "questionType": {
              "enum": [
                "Multiple Choice",
                "Dropdown List"
              ]
            }
          }
        },
        "then": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "photo": {
                "type": "string"
              },
              "option": {
                "type": "string"
              }
            }
          }
        }
      },
      "asButton": {
        "if": {
          "properties": {
            "questionType": {
              "const": "Multiple Choice"
            },
            "multiple": {
              "const": false
            }
          }
        },
        "then": {
          "type": "boolean"
        }
      },
      "transitionInName": {
        "type": "string",
        "enum": [
          "fly",
          "fade",
          "slide",
          "scale",
          "blur"
        ]
      },
      "transitionInFrom": {
        "type": "string",
        "enum": [
          "top",
          "left",
          "bottom",
          "right",
          "center"
        ]
      },
      "transitionInSpeed": {
        "type": "string",
        "enum": [
          "slow",
          "medium",
          "fast"
        ]
      },
      "transitionOutName": {
        "type": "string",
        "enum": [
          "fly",
          "fade",
          "slide",
          "scale",
          "blur"
        ]
      },
      "transitionOutTo": {
        "type": "string",
        "enum": [
          "top",
          "left",
          "bottom",
          "right",
          "center"
        ]
      },
      "transitionOutSpeed": {
        "type": "string",
        "enum": [
          "slow",
          "medium",
          "fast"
        ]
      }
    }
  }
}