{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A skiddle.id post that isn't published yet, kept apart from site.standard.document so readers don't list it. Anyone can read it on the PDS. Publishing turns it into a site.standard.document and deletes the draft.",
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "ref": "id.skiddle.post",
            "type": "ref"
          },
          "coverImage": {
            "accept": [
              "image/*"
            ],
            "description": "The share card, drawn when the draft is scheduled, so publishing it needs no drawing.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "path": {
            "description": "Where the post will live once published, e.g. /posts/lab-notes-2/.",
            "maxLength": 512,
            "type": "string"
          },
          "publishAt": {
            "description": "When to publish it. Absent: not scheduled.",
            "format": "datetime",
            "type": "string"
          },
          "tags": {
            "items": {
              "maxGraphemes": 128,
              "maxLength": 1280,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "title": {
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "title",
          "content",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "id.skiddle.draft",
  "lexicon": 1
}
