{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "certification": {
      "properties": {
        "title": {
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        },
        "when": {
          "description": "A year, or e.g. 'Expected Q1 2027'.",
          "maxGraphemes": 50,
          "maxLength": 500,
          "type": "string"
        }
      },
      "required": [
        "title",
        "when"
      ],
      "type": "object"
    },
    "company": {
      "properties": {
        "company": {
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        },
        "description": {
          "description": "One line under the company's name, e.g. what it is.",
          "maxGraphemes": 500,
          "maxLength": 5000,
          "type": "string"
        },
        "positions": {
          "description": "Newest first.",
          "items": {
            "ref": "#position",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        }
      },
      "required": [
        "company",
        "positions"
      ],
      "type": "object"
    },
    "education": {
      "properties": {
        "degree": {
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        },
        "description": {
          "maxGraphemes": 500,
          "maxLength": 5000,
          "type": "string"
        },
        "end": {
          "maxGraphemes": 20,
          "maxLength": 200,
          "type": "string"
        },
        "school": {
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        },
        "start": {
          "maxGraphemes": 20,
          "maxLength": 200,
          "type": "string"
        }
      },
      "required": [
        "degree",
        "school"
      ],
      "type": "object"
    },
    "highlight": {
      "properties": {
        "href": {
          "description": "A path on skiddle.id, e.g. /posts/…/, or a full URL.",
          "maxLength": 2000,
          "type": "string"
        },
        "label": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "value": {
          "description": "e.g. '60%' or 'since 2020'.",
          "maxGraphemes": 30,
          "maxLength": 300,
          "type": "string"
        }
      },
      "required": [
        "value",
        "label"
      ],
      "type": "object"
    },
    "links": {
      "properties": {
        "bluesky": {
          "format": "uri",
          "type": "string"
        },
        "github": {
          "format": "uri",
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Jeff's CV, the /works/ page. One record, key 'self'. Its highlights also show on /services/.",
      "key": "literal:self",
      "record": {
        "properties": {
          "certifications": {
            "description": "Newest first.",
            "items": {
              "ref": "#certification",
              "type": "ref"
            },
            "maxLength": 50,
            "type": "array"
          },
          "education": {
            "items": {
              "ref": "#education",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "email": {
            "maxLength": 254,
            "type": "string"
          },
          "experience": {
            "description": "Newest first.",
            "items": {
              "ref": "#company",
              "type": "ref"
            },
            "maxLength": 30,
            "type": "array"
          },
          "highlights": {
            "description": "Proof points: a number or a short fact, and what it means. Every number comes from the CV, the projects or the posts.",
            "items": {
              "ref": "#highlight",
              "type": "ref"
            },
            "maxLength": 12,
            "type": "array"
          },
          "links": {
            "ref": "#links",
            "type": "ref"
          },
          "location": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "name": {
            "description": "e.g. 'Laurensius Jeffrey (Jeff)'.",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "projects": {
            "description": "Other work worth listing that has no id.skiddle.project record.",
            "items": {
              "ref": "#notableProject",
              "type": "ref"
            },
            "maxLength": 30,
            "type": "array"
          },
          "selectedProjects": {
            "description": "id.skiddle.project records to show, in order.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "skills": {
            "items": {
              "ref": "#skillGroup",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "summary": {
            "description": "Paragraphs, in order.",
            "items": {
              "maxGraphemes": 2000,
              "maxLength": 20000,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "title": {
            "description": "e.g. 'Protocol Engineer & Founder, Skiddle Labs'.",
            "maxGraphemes": 200,
            "maxLength": 2000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "name",
          "title",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "notableProject": {
      "properties": {
        "description": {
          "maxGraphemes": 500,
          "maxLength": 5000,
          "type": "string"
        },
        "labels": {
          "description": "What it's built with.",
          "items": {
            "maxGraphemes": 50,
            "maxLength": 500,
            "type": "string"
          },
          "maxLength": 20,
          "type": "array"
        },
        "live": {
          "format": "uri",
          "type": "string"
        },
        "source": {
          "format": "uri",
          "type": "string"
        },
        "status": {
          "description": "e.g. 'Ongoing'.",
          "maxGraphemes": 50,
          "maxLength": 500,
          "type": "string"
        },
        "title": {
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "title",
        "description"
      ],
      "type": "object"
    },
    "position": {
      "properties": {
        "client": {
          "description": "Who the work is for, when it's done through the company, e.g. 'an undisclosed client'.",
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        },
        "employment": {
          "description": "e.g. 'Contract'. Shown next to the role.",
          "maxGraphemes": 50,
          "maxLength": 500,
          "type": "string"
        },
        "end": {
          "description": "Absent while it's still the role.",
          "maxGraphemes": 20,
          "maxLength": 200,
          "type": "string"
        },
        "highlights": {
          "items": {
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          },
          "maxLength": 20,
          "type": "array"
        },
        "role": {
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        },
        "start": {
          "description": "e.g. '2020' or 'Q3 2026'.",
          "maxGraphemes": 20,
          "maxLength": 200,
          "type": "string"
        }
      },
      "required": [
        "role",
        "start"
      ],
      "type": "object"
    },
    "skillGroup": {
      "properties": {
        "items": {
          "items": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "maxLength": 50,
          "type": "array"
        },
        "title": {
          "description": "e.g. 'Languages'.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        }
      },
      "required": [
        "title",
        "items"
      ],
      "type": "object"
    }
  },
  "id": "id.skiddle.cv",
  "lexicon": 1
}
