{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shapes.penny.coop/notice/1.0.0/schema.json",
  "title": "Notice",
  "description": "A private notice with title, Content body and optional author.",
  "type": "object",
  "properties": {
    "title": {
      "title": "Title",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "text"
      }
    },
    "body": {
      "title": "Body",
      "$ref": "https://shapes.penny.coop/content-markdown/1.0.0/schema.json",
      "x-penny": {
        "field": "content",
        "storage": "markdown"
      }
    },
    "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"
        ]
      }
    }
  },
  "required": [
    "title"
  ],
  "x-penny": {
    "shape": "notice",
    "version": "1.0.0",
    "source": "app/types/notice.js",
    "sourceName": "notice",
    "kind": "record",
    "plural": "Notices",
    "icon": "Megaphone",
    "group": "Private",
    "defaultVisibility": "private",
    "publishable": false,
    "fieldOrder": [
      "title",
      "body",
      "author"
    ],
    "sensitive": true
  }
}
