{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iarpg.com/country-context-review-evidence.schema.json",
  "title": "Country Context Reviewer Evidence",
  "type": "object",
  "required": [
    "$schema",
    "record_type",
    "schema_version",
    "release",
    "version",
    "review_record_id",
    "country_slug",
    "claim_id",
    "submission_state",
    "reviewer",
    "qualification_and_relationship",
    "language_and_translation",
    "conflicts_and_funding",
    "consent",
    "claim_response",
    "publication_gate"
  ],
  "properties": {
    "$schema": {
      "const": "https://iarpg.com/country-context-review-evidence.schema.json"
    },
    "record_type": {
      "const": "iarpg-country-context-review-evidence"
    },
    "schema_version": {
      "const": "1.0"
    },
    "release": {
      "const": "IARPG-OPS-2"
    },
    "version": {
      "const": "2.0.25-wip"
    },
    "review_record_id": {
      "type": "string"
    },
    "country_slug": {
      "type": "string"
    },
    "claim_id": {
      "type": "string"
    },
    "submission_state": {
      "enum": [
        "unanswered",
        "submitted",
        "source-verified",
        "adjudicated",
        "withdrawn",
        "superseded",
        "confidential",
        "publishable"
      ]
    },
    "reviewer": {
      "type": "object"
    },
    "qualification_and_relationship": {
      "type": "object"
    },
    "language_and_translation": {
      "type": "object"
    },
    "conflicts_and_funding": {
      "type": "object"
    },
    "consent": {
      "type": "object"
    },
    "claim_response": {
      "type": "object"
    },
    "publication_gate": {
      "type": "object",
      "required": [
        "publishable",
        "blockers"
      ],
      "properties": {
        "publishable": {
          "type": "boolean"
        },
        "blockers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "additionalProperties": true
}
