{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://neon-sprawl.local/schemas/level-curve.schema.json",
  "title": "LevelCurve",
  "description": "Prototype level thresholds for E2.M2. Levels and requiredXp values must increase strictly row-to-row.",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "levels"],
  "properties": {
    "schemaVersion": {
      "type": "integer",
      "const": 1
    },
    "levels": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["level", "requiredXp"],
        "properties": {
          "level": {
            "type": "integer",
            "minimum": 1
          },
          "requiredXp": {
            "type": "integer",
            "minimum": 0
          }
        }
      }
    }
  }
}
