{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://www.litespace.io/internships/data/v1/schema.json",
 "title": "Litespace internship posting",
 "type": "object",
 "required": [
  "id",
  "short_id",
  "company",
  "title",
  "status",
  "accepting_applications",
  "expired_on",
  "expired_reason",
  "countries",
  "url",
  "apply_url",
  "first_seen",
  "last_seen",
  "facts_stated",
  "facts_missing",
  "fact_status",
  "checked"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "Stable id: ats:board:job_id"
  },
  "short_id": {
   "type": "string",
   "pattern": "^[0-9a-z]{6}$",
   "description": "Hash of id; finds the record at /internships/data/v1/postings/<short_id>.json"
  },
  "page": {
   "type": "string",
   "format": "uri",
   "description": "The posting page: /internships/companies/<company>/<year>/<role>, without <year> when the posting names none"
  },
  "record": {
   "type": "string",
   "format": "uri"
  },
  "company": {
   "type": "object",
   "properties": {
    "slug": {
     "type": "string"
    },
    "name": {
     "type": "string"
    }
   }
  },
  "title": {
   "type": "string"
  },
  "role": {
   "enum": [
    "quant-trading",
    "machine-learning",
    "security",
    "hardware",
    "product",
    "design",
    "software",
    "data",
    "finance",
    "marketing",
    "business",
    "research",
    "other"
   ]
  },
  "season": {
   "enum": [
    "Winter",
    "Spring",
    "Summer",
    "Fall",
    null
   ]
  },
  "year": {
   "type": [
    "integer",
    "null"
   ]
  },
  "duration": {
   "type": [
    "string",
    "null"
   ]
  },
  "countries": {
   "type": "array",
   "items": {
    "enum": [
     "US",
     "CA"
    ]
   }
  },
  "locations": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "label": {
      "type": "string"
     },
     "city": {
      "type": "string"
     },
     "region": {
      "type": "string"
     },
     "country": {
      "type": [
       "string",
       "null"
      ]
     },
     "remote": {
      "type": "boolean"
     }
    }
   }
  },
  "work_arrangement": {
   "enum": [
    "Remote",
    "Hybrid",
    "On-site",
    "Remote option",
    null
   ]
  },
  "pay": {
   "type": [
    "object",
    "null"
   ],
   "properties": {
    "min": {
     "type": "number"
    },
    "max": {
     "type": "number"
    },
    "currency": {
     "enum": [
      "USD",
      "CAD"
     ]
    },
    "interval": {
     "enum": [
      "hour",
      "week",
      "month",
      "year"
     ]
    },
    "hourly_min": {
     "type": "number"
    },
    "hourly_max": {
     "type": "number"
    },
    "source": {
     "enum": [
      "board",
      "posting"
     ]
    },
    "currency_inferred": {
     "type": "boolean"
    }
   }
  },
  "education": {
   "type": "array",
   "items": {
    "enum": [
     "High school",
     "Bachelor's",
     "Master's",
     "PhD"
    ]
   }
  },
  "graduation": {
   "type": [
    "object",
    "null"
   ],
   "properties": {
    "text": {
     "type": "string"
    },
    "years": {
     "type": "array",
     "items": {
      "type": "integer"
     }
    }
   }
  },
  "sponsorship": {
   "enum": [
    "yes",
    "limited",
    "no",
    null
   ],
   "description": "limited: may sponsor case by case, no guarantee. null means the posting does not say"
  },
  "work_authorization": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "cpt_opt": {
   "type": "boolean"
  },
  "clearance_or_citizenship": {
   "type": "boolean"
  },
  "majors": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "standing": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "min_gpa": {
   "type": [
    "number",
    "null"
   ]
  },
  "dates": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "start": {
      "type": "string",
      "format": "date"
     },
     "end": {
      "type": "string",
      "format": "date"
     }
    }
   }
  },
  "hours_per_week": {
   "type": [
    "object",
    "null"
   ],
   "properties": {
    "min": {
     "type": "number"
    },
    "max": {
     "type": "number"
    }
   }
  },
  "schedule": {
   "enum": [
    "Full-time",
    "Part-time",
    "Full-time or part-time",
    null
   ]
  },
  "office_days": {
   "type": [
    "integer",
    "null"
   ],
   "minimum": 1,
   "maximum": 5
  },
  "materials": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "interview": {
   "type": "object",
   "properties": {
    "steps": {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    "note": {
     "type": [
      "string",
      "null"
     ]
    },
    "ai_policy": {
     "enum": [
      "not allowed",
      "part of the process",
      null
     ]
    },
    "response_time": {
     "type": [
      "string",
      "null"
     ]
    }
   }
  },
  "rolling": {
   "type": "boolean",
   "description": "The posting says applications are reviewed on a rolling basis"
  },
  "perks": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "return_offers_mentioned": {
   "type": "boolean"
  },
  "is_new": {
   "type": "boolean",
   "description": "Posted or first seen in the last 7 days"
  },
  "facts_stated": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Which of the ten decision facts the posting states"
  },
  "facts_missing": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Which of the ten decision facts the posting does not state"
  },
  "fact_status": {
   "type": "object",
   "description": "Each of the ten decision facts: stated (the posting says it), not_stated (the full posting was read and does not say it; never means no) or unknown (the board returned too little text to read)",
   "properties": {
    "pay": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "term": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "dates_or_length": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "work_setup": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "visa_sponsorship": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "degree_level": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "graduation_window": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "materials": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "interview_steps": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    },
    "deadline": {
     "enum": [
      "stated",
      "not_stated",
      "unknown"
     ]
    }
   }
  },
  "checked": {
   "type": "object",
   "description": "When the posting text was read",
   "properties": {
    "on": {
     "type": "string",
     "format": "date"
    },
    "words": {
     "type": [
      "integer",
      "null"
     ],
     "description": "Length of the text read; null for records read before lengths were kept"
    }
   }
  },
  "pay_percentile": {
   "type": "object",
   "properties": {
    "overall": {
     "type": [
      "integer",
      "null"
     ]
    },
    "role": {
     "type": [
      "integer",
      "null"
     ]
    }
   },
   "description": "Share (0-100) of open postings in the same currency with a lower hourly midpoint"
  },
  "posted_on": {
   "type": [
    "string",
    "null"
   ],
   "format": "date"
  },
  "deadline": {
   "type": [
    "string",
    "null"
   ],
   "format": "date"
  },
  "deadline_expected": {
   "type": "boolean",
   "description": "The deadline is the employer's estimate"
  },
  "first_seen": {
   "type": "string",
   "format": "date"
  },
  "last_seen": {
   "type": "string",
   "format": "date",
   "description": "Last day the posting was on the employer board"
  },
  "expired_on": {
   "type": [
    "string",
    "null"
   ],
   "format": "date"
  },
  "expired_reason": {
   "enum": [
    "removed",
    "deadline_passed",
    null
   ]
  },
  "reopened_on": {
   "type": "string",
   "format": "date"
  },
  "employer_visa_records": {
   "type": "array",
   "description": "The employer's foreign-worker hiring records for the countries this posting is in, one per country, across all its roles. Not a statement about this posting; empty when no record was confirmed",
   "items": {
    "type": "object",
    "properties": {
     "country": {
      "enum": [
       "US",
       "CA"
      ]
     },
     "program": {
      "enum": [
       "H-1B",
       "LMIA"
      ],
      "description": "H-1B: USCIS H-1B Employer Data Hub. LMIA: ESDC positive Labour Market Impact Assessment employer lists"
     },
     "agency": {
      "enum": [
       "USCIS",
       "ESDC"
      ]
     },
     "period": {
      "type": "object",
      "properties": {
       "start": {
        "type": "string",
        "format": "date"
       },
       "end": {
        "type": "string",
        "format": "date"
       }
      }
     },
     "period_label": {
      "type": "string",
      "description": "The record's months, for example Oct 2021 – Sep 2022 or Jul 2025 – Jun 2026"
     },
     "approved": {
      "type": "integer",
      "description": "H-1B: petitions approved across the source decision categories. LMIA: positions covered by approved LMIAs"
     },
     "unit": {
      "enum": [
       "petitions",
       "positions"
      ]
     },
     "denied": {
      "type": [
       "integer",
       "null"
      ],
      "description": "H-1B petitions denied; null for LMIA, whose lists publish approvals only"
     },
     "details": {
      "type": "object",
      "description": "H-1B: fiscal_year and measures under USCIS names, including the source decision categories. LMIA: approved_lmias, streams (positions by program stream) and quarters"
     },
     "filers": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Employer names as the source lists them"
     },
     "source": {
      "type": "string"
     },
     "source_url": {
      "type": "string",
      "format": "uri"
     },
     "retrieved": {
      "type": "string",
      "format": "date"
     }
    }
   }
  },
  "availability_verified": {
   "type": "boolean",
   "description": "True only for an open posting seen in the latest successful board collection"
  },
  "source_status": {
   "type": "object",
   "properties": {
    "status": {
     "enum": [
      "verified",
      "retained",
      "unknown"
     ]
    },
    "checked_at": {
     "type": [
      "string",
      "null"
     ]
    },
    "last_successful_on": {
     "type": [
      "string",
      "null"
     ]
    },
    "last_seen": {
     "type": [
      "string",
      "null"
     ]
    }
   }
  },
  "status": {
   "enum": [
    "open",
    "expired"
   ]
  },
  "accepting_applications": {
   "type": "boolean",
   "description": "Last observed open state; use availability_verified and source_status before treating availability as verified"
  },
  "days_open": {
   "type": "integer"
  },
  "repost_of": {
   "type": "string"
  },
  "url": {
   "type": "string",
   "format": "uri",
   "description": "The employer's posting"
  },
  "apply_url": {
   "type": "string",
   "format": "uri",
   "description": "The employer's application; apply only here"
  }
 }
}