{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "image": {
      "properties": {
        "alt": {
          "description": "Text for people who can't see the image.",
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "caption": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "image": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        },
        "name": {
          "description": "How the Markdown refers to the image: ![alt](image:NAME). Unique within the post.",
          "maxLength": 64,
          "type": "string"
        },
        "width": {
          "description": "In pixels, so the page doesn't jump while it loads.",
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "name",
        "image",
        "alt"
      ],
      "type": "object"
    },
    "main": {
      "properties": {
        "category": {
          "description": "The section of the site the post belongs to. Readers that don't know the value can ignore it.",
          "knownValues": [
            "infra",
            "atproto",
            "homelab",
            "life"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "featured": {
          "description": "Shown first on the home page.",
          "type": "boolean"
        },
        "images": {
          "description": "The images the Markdown shows.",
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 50,
          "type": "array"
        },
        "lang": {
          "description": "The post's language, e.g. 'en' or 'id'. Absent means English.",
          "format": "language",
          "type": "string"
        },
        "markdown": {
          "description": "The post body: CommonMark with GitHub's extensions (tables, footnotes, strikethrough). An image is written ![alt](image:NAME), NAME being the name of one of `images`.",
          "maxLength": 200000,
          "type": "string"
        },
        "series": {
          "description": "The series the post is a part of, if any.",
          "ref": "#seriesPart",
          "type": "ref"
        }
      },
      "required": [
        "markdown"
      ],
      "type": "object"
    },
    "seriesPart": {
      "properties": {
        "part": {
          "description": "Which part of the series it is, from 1.",
          "minimum": 1,
          "type": "integer"
        },
        "series": {
          "description": "An id.skiddle.series record.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "series",
        "part"
      ],
      "type": "object"
    }
  },
  "description": "skiddle.id's content for a site.standard.document: the post's Markdown, its images, and what Standard.site doesn't have. Goes in the document's open `content` union.",
  "id": "id.skiddle.post",
  "lexicon": 1
}
