{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iarpg.com/country-context-balanced-batch.schema.json",
  "title": "IARPG Balanced Current-Country Proposal Batch",
  "type": "object",
  "required": [
    "$schema",
    "record_type",
    "schema_version",
    "release",
    "version",
    "batch_id",
    "status",
    "research_cutoff",
    "selection",
    "constraints",
    "proposal_count",
    "claim_count",
    "source_record_count",
    "proposals",
    "comparative_fairness",
    "publication_gate",
    "updated_utc"
  ],
  "properties": {
    "$schema": {
      "const": "https://iarpg.com/country-context-balanced-batch.schema.json"
    },
    "record_type": {
      "const": "iarpg-country-context-balanced-batch"
    },
    "schema_version": {
      "const": "1.0"
    },
    "release": {
      "const": "IARPG-OPS-2"
    },
    "version": {
      "const": "2.0.22-wip"
    },
    "batch_id": {
      "type": "string"
    },
    "status": {
      "const": "draft"
    },
    "research_cutoff": {
      "type": "string",
      "format": "date"
    },
    "selection": {
      "type": "object"
    },
    "constraints": {
      "type": "object"
    },
    "proposal_count": {
      "const": 5
    },
    "claim_count": {
      "const": 60
    },
    "source_record_count": {
      "const": 60
    },
    "proposals": {
      "type": "array",
      "minItems": 5,
      "maxItems": 5,
      "items": {
        "type": "object"
      }
    },
    "comparative_fairness": {
      "type": "object"
    },
    "publication_gate": {
      "type": "object",
      "required": [
        "publishable",
        "blockers",
        "warnings"
      ],
      "properties": {
        "publishable": {
          "const": false
        },
        "blockers": {
          "type": "array"
        },
        "warnings": {
          "type": "array"
        }
      }
    },
    "updated_utc": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": true
}
