{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iarpg.com/world-systems-lenses.schema.json",
  "title": "IARPG World Systems Lenses",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "$schema",
    "id",
    "release",
    "version",
    "status",
    "canonical",
    "lens_count",
    "source_report_count",
    "truth_boundary",
    "sequence",
    "lenses"
  ],
  "properties": {
    "$schema": {
      "const": "https://iarpg.com/world-systems-lenses.schema.json"
    },
    "id": {
      "const": "https://iarpg.com/world-systems-lenses.json"
    },
    "release": {
      "const": "IARPG-OPS-2"
    },
    "version": {
      "const": "2.0.21-wip"
    },
    "status": {
      "const": "work-in-progress"
    },
    "canonical": {
      "const": "https://iarpg.com/world-systems"
    },
    "lens_count": {
      "const": 6
    },
    "source_report_count": {
      "const": 6
    },
    "truth_boundary": {
      "type": "string",
      "minLength": 20
    },
    "sequence": {
      "type": "array",
      "minItems": 8,
      "items": {
        "type": "string"
      }
    },
    "lenses": {
      "type": "array",
      "minItems": 6,
      "maxItems": 6,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "order",
          "title",
          "question",
          "report_slug",
          "review_status",
          "related_routes",
          "truth_boundary"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "order": {
            "type": "integer",
            "minimum": 1,
            "maximum": 6
          },
          "title": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "report_slug": {
            "type": "string"
          },
          "review_status": {
            "const": "reviewed-with-limitations"
          },
          "related_routes": {
            "type": "array",
            "minItems": 3,
            "items": {
              "type": "string",
              "pattern": "^/"
            }
          },
          "truth_boundary": {
            "type": "string"
          }
        }
      }
    }
  }
}
