{
  "title": "Resume",
  "description": "Canonical shape of a resume as parsed from MDX by this tool. See docs/mdx-format.md for the JSX dialect that produces this shape.",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1
        },
        "title": {
          "type": "string"
        },
        "summary": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    },
    "contact": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        "phone": {
          "type": "string"
        },
        "location": {
          "type": "string"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "minLength": 1
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "label",
              "url"
            ],
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "experience": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "minLength": 1
          },
          "role": {
            "type": "string",
            "minLength": 1
          },
          "location": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "minLength": 1
          },
          "end": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "string",
                "const": "present"
              }
            ]
          },
          "bullets": {
            "default": [],
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema0"
              }
            }
          },
          "tech": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "company",
          "role",
          "start",
          "end",
          "bullets"
        ],
        "additionalProperties": false
      }
    },
    "education": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "institution": {
            "type": "string",
            "minLength": 1
          },
          "degree": {
            "type": "string",
            "minLength": 1
          },
          "field": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "start": {
            "type": "string"
          },
          "end": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "institution",
          "degree"
        ],
        "additionalProperties": false
      }
    },
    "skills": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "group": {
            "type": "string"
          },
          "items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      }
    },
    "projects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "tech": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bullets": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema0"
              }
            }
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      }
    },
    "extras": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "heading": {
            "type": "string",
            "minLength": 1
          },
          "items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1
                },
                "subtitle": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "title"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "heading",
          "items"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "meta",
    "contact",
    "experience",
    "education",
    "skills"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "t": {
              "type": "string",
              "const": "text"
            },
            "v": {
              "type": "string"
            }
          },
          "required": [
            "t",
            "v"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "t": {
              "type": "string",
              "const": "strong"
            },
            "c": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema0"
              }
            }
          },
          "required": [
            "t",
            "c"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "t": {
              "type": "string",
              "const": "em"
            },
            "c": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema0"
              }
            }
          },
          "required": [
            "t",
            "c"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "t": {
              "type": "string",
              "const": "code"
            },
            "v": {
              "type": "string"
            }
          },
          "required": [
            "t",
            "v"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "t": {
              "type": "string",
              "const": "link"
            },
            "u": {
              "type": "string"
            },
            "c": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema0"
              }
            }
          },
          "required": [
            "t",
            "u",
            "c"
          ],
          "additionalProperties": false
        }
      ]
    }
  }
}
