{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shapes.penny.coop/guardian/1.0.0/schema.json",
  "title": "Guardian",
  "description": "A non-identifying guardian reference linked to a participant.",
  "type": "object",
  "properties": {
    "title": {
      "title": "Reference / alias",
      "type": "string",
      "x-penny": {
        "field": "text"
      }
    },
    "participantId": {
      "title": "Participant",
      "type": "string",
      "description": "A project-local record reference, normally typeName/recordId. The referenced record is not embedded.",
      "x-penny": {
        "field": "reference",
        "to": [
          "participant"
        ]
      }
    },
    "notes": {
      "title": "Non-identifying notes",
      "type": "string",
      "x-penny": {
        "field": "textarea",
        "input": "textarea"
      }
    }
  },
  "x-penny": {
    "shape": "guardian",
    "version": "1.0.0",
    "source": "app/src/lib/design/project-model.js",
    "sourceName": "guardian",
    "kind": "record",
    "plural": "Guardians",
    "icon": "ShieldCheck",
    "defaultVisibility": "private",
    "publishable": false,
    "fieldOrder": [
      "title",
      "participantId",
      "notes"
    ],
    "sensitive": true
  }
}
