{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ocr.wiki/schemas/generic_note.json",
  "title": "Note",
  "description": "A freeform note with the obvious facts pulled out.",
  "type": "object",
  "additionalProperties": false,
  "required": ["title", "body"],
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 160
    },
    "body": {
      "type": "string",
      "maxLength": 8000
    },
    "dates": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 40
      }
    },
    "emails": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 160
      }
    },
    "phones": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 40
      }
    },
    "urls": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 300
      }
    },
    "amounts": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "number"
      }
    }
  }
}
