{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shapes.penny.coop/consent-form/1.0.0/schema.json",
  "title": "Consent Form",
  "description": "Study information, introduction and consent statements used to request participant consent.",
  "type": "object",
  "properties": {
    "title": {
      "title": "Title",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "text"
      }
    },
    "slug": {
      "title": "Slug",
      "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"
        ]
      }
    },
    "useForSignup": {
      "title": "Use as signup consent form",
      "type": "boolean",
      "description": "Participants must agree to this consent form before signing up",
      "x-penny": {
        "field": "boolean"
      }
    },
    "introduction": {
      "title": "Introduction",
      "$ref": "https://shapes.penny.coop/content-markdown/1.0.0/schema.json",
      "x-penny": {
        "field": "content",
        "storage": "markdown"
      }
    },
    "information": {
      "title": "Information",
      "$ref": "https://shapes.penny.coop/content-markdown/1.0.0/schema.json",
      "x-penny": {
        "field": "content",
        "storage": "markdown"
      }
    },
    "items": {
      "title": "Consent Items",
      "type": "array",
      "items": {
        "$ref": "https://shapes.penny.coop/content-markdown/1.0.0/schema.json"
      },
      "x-penny": {
        "field": "content",
        "multiple": true,
        "storage": "markdown"
      }
    }
  },
  "required": [
    "title"
  ],
  "x-penny": {
    "shape": "consent-form",
    "version": "1.0.0",
    "source": "app/types/consentForm.js",
    "sourceName": "consentForm",
    "kind": "record",
    "plural": "Consent Forms",
    "icon": "ShieldCheck",
    "group": "Private",
    "defaultVisibility": "private",
    "publishable": false,
    "fieldOrder": [
      "title",
      "slug",
      "author",
      "useForSignup",
      "introduction",
      "information",
      "items"
    ],
    "sensitive": true
  }
}
