{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shapes.penny.coop/question-part/1.0.0/schema.json",
  "title": "Question part",
  "description": "One part of a research question with response category, formats, choices and upload limit.",
  "type": "object",
  "properties": {
    "id": {
      "title": "ID",
      "type": "string",
      "readOnly": true,
      "x-penny": {
        "field": "text",
        "input": "text",
        "readOnly": true,
        "generated": true
      }
    },
    "title": {
      "title": "Title",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "text"
      }
    },
    "responseCategory": {
      "title": "Response type",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "questionPartCategory"
      }
    },
    "responseTypes": {
      "title": "Response types",
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-penny": {
        "field": "text",
        "multiple": true,
        "hidden": true
      }
    },
    "yesNoLabels": {
      "title": "Labels",
      "type": "string",
      "x-penny": {
        "field": "text",
        "hidden": true
      }
    },
    "options": {
      "title": "Choices",
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-penny": {
        "field": "text",
        "input": "text",
        "multiple": true,
        "hidden": true
      }
    },
    "maxFiles": {
      "title": "maxFiles",
      "type": "number",
      "x-penny": {
        "hidden": true
      }
    }
  },
  "required": [
    "id",
    "title"
  ],
  "x-penny": {
    "shape": "question-part",
    "version": "1.0.0",
    "source": "app/types/questionPart.js",
    "sourceName": "questionPart",
    "kind": "object",
    "defaultVisibility": "private",
    "publishable": false,
    "fieldOrder": [
      "id",
      "title",
      "responseCategory",
      "responseTypes",
      "yesNoLabels",
      "options",
      "maxFiles"
    ]
  }
}
