{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Resume Experience",
  "description": "Schema for the resume experience data.",
  "type": "array",
  "items": {
    "$ref": "#/definitions/Experience"
  },
  "definitions": {
    "Experience": {
      "type": "object",
      "properties": {
        "UUID": {
          "type": "string",
          "description": "The unique identifier for the experience entry."
        },
        "experience_title": {
          "type": "string",
          "description": "The job title or role for the experience."
        },
        "company": {
          "type": "string",
          "description": "The name of the company or organization."
        },
        "location": {
          "type": "string",
          "description": "The geographical location of the job."
        },
        "timeline": {
          "type": "object",
          "properties": {
            "start": {
              "type": "string",
              "format": "date"
            },
            "end": {
              "type": "string",
              "format": "date"
            }
          },
          "required": ["start", "end"]
        },
        "work_type": {
          "type": "string",
          "description": "The type of employment."
        },
        "summary": {
          "type": "string",
          "description": "A detailed paragraph describing the responsibilities and achievements in the role."
        },
        "exploration_phase": {
          "type": "string",
          "description": "The processing status of the entry."
        },
        "top_skills": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Skill"
          }
        }
      },
      "required": [
        "UUID",
        "experience_title",
        "company",
        "location",
        "timeline",
        "work_type",
        "summary",
        "exploration_phase",
        "top_skills"
      ]
    },
    "Skill": {
      "type": "object",
      "properties": {
        "UUID": {
          "type": "string",
          "description": "The unique identifier for the skill."
        },
        "preferredLabel": {
          "type": "string",
          "description": "The primary name of the skill."
        },
        "altLabels": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string",
          "description": "A detailed explanation of what the skill entails."
        },
        "orderIndex": {
          "type": "number",
          "description": "The display order of the skill within the list."
        }
      },
      "required": [
        "UUID",
        "preferredLabel",
        "altLabels",
        "description",
        "orderIndex"
      ]
    }
  }
}
