{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "contact": {
      "properties": {
        "blurb": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "links": {
          "items": {
            "ref": "#contactLink",
            "type": "ref"
          },
          "maxLength": 10,
          "type": "array"
        }
      },
      "type": "object"
    },
    "contactLink": {
      "properties": {
        "label": {
          "description": "e.g. 'work@skiddle.id'.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        },
        "url": {
          "description": "e.g. mailto:… or https://….",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "label",
        "url"
      ],
      "type": "object"
    },
    "fact": {
      "properties": {
        "label": {
          "description": "e.g. 'Based'.",
          "maxGraphemes": 30,
          "maxLength": 300,
          "type": "string"
        },
        "value": {
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        }
      },
      "required": [
        "label",
        "value"
      ],
      "type": "object"
    },
    "main": {
      "description": "Who Jeff is, the /about/ page. One record, key 'self'.",
      "key": "literal:self",
      "record": {
        "properties": {
          "contact": {
            "ref": "#contact",
            "type": "ref"
          },
          "current": {
            "description": "What Jeff is doing now: the timeline's last line.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "intro": {
            "description": "Markdown, rendered like a post's text: paragraphs, links, bold and italics.",
            "maxGraphemes": 5000,
            "maxLength": 50000,
            "type": "string"
          },
          "outside": {
            "description": "Outside of work. Markdown, rendered like a post's text: paragraphs, links, bold and italics.",
            "maxGraphemes": 5000,
            "maxLength": 50000,
            "type": "string"
          },
          "principles": {
            "description": "How Jeff works.",
            "items": {
              "ref": "#principle",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "profile": {
            "description": "Short facts beside the avatar, like a terminal's neofetch.",
            "items": {
              "ref": "#fact",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "timeline": {
            "description": "Oldest first.",
            "items": {
              "ref": "#milestone",
              "type": "ref"
            },
            "maxLength": 50,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "intro",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "milestone": {
      "properties": {
        "href": {
          "description": "A link after the text: A path on skiddle.id, e.g. /posts/…/, or a full URL.",
          "maxLength": 2000,
          "type": "string"
        },
        "link": {
          "description": "The link's text, saying where it goes.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        },
        "text": {
          "maxGraphemes": 500,
          "maxLength": 5000,
          "type": "string"
        },
        "year": {
          "maxGraphemes": 10,
          "maxLength": 100,
          "type": "string"
        }
      },
      "required": [
        "year",
        "text"
      ],
      "type": "object"
    },
    "principle": {
      "properties": {
        "body": {
          "maxGraphemes": 500,
          "maxLength": 5000,
          "type": "string"
        },
        "title": {
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        }
      },
      "required": [
        "title",
        "body"
      ],
      "type": "object"
    }
  },
  "id": "id.skiddle.about",
  "lexicon": 1
}
