{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shapes.penny.coop/question/1.0.0/schema.json",
  "title": "Question",
  "description": "A research question composed of individually configurable parts.",
  "type": "object",
  "properties": {
    "title": {
      "title": "Title",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "text"
      }
    },
    "author": {
      "title": "Author",
      "type": "string",
      "description": "A project-local record reference, normally typeName/recordId. The referenced record is not embedded.",
      "x-penny": {
        "field": "reference",
        "to": [
          "contact"
        ]
      }
    },
    "parts": {
      "title": "Parts",
      "type": "array",
      "items": {
        "$ref": "https://shapes.penny.coop/question-part/1.0.0/schema.json"
      },
      "x-penny": {
        "field": "questionPart",
        "multiple": true
      }
    }
  },
  "required": [
    "title"
  ],
  "x-penny": {
    "shape": "question",
    "version": "1.0.0",
    "source": "app/types/question.js",
    "sourceName": "question",
    "kind": "record",
    "plural": "Questions",
    "icon": "MessageCircleQuestion",
    "group": "Private",
    "defaultVisibility": "private",
    "publishable": false,
    "fieldOrder": [
      "title",
      "author",
      "parts"
    ],
    "sensitive": true
  }
}
