{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iarpg.com/country-context-consent-language-version.schema.json",
  "title": "Country Context Consent Language Version",
  "description": "2.0.28-wip synthetic consent-language and disclosure-comprehension record.",
  "type": "object",
  "required": [
    "$schema",
    "record_type",
    "schema_version",
    "release",
    "version",
    "synthetic_fixture",
    "non_evidentiary",
    "truth_boundary",
    "language_version_id",
    "permission_key",
    "title",
    "original_wording",
    "plain_language_wording",
    "authorizes",
    "does_not_authorize",
    "rationale",
    "legal_review_state",
    "accessibility_review_state",
    "version_history",
    "publication_gate"
  ],
  "properties": {
    "$schema": {
      "const": "https://iarpg.com/country-context-consent-language-version.schema.json"
    },
    "record_type": {
      "const": "iarpg-country-context-consent-language-version"
    },
    "schema_version": {
      "const": "1.0"
    },
    "release": {
      "const": "IARPG-OPS-2"
    },
    "version": {
      "const": "2.0.28-wip"
    },
    "synthetic_fixture": {
      "const": true
    },
    "non_evidentiary": {
      "const": true
    },
    "truth_boundary": {
      "type": "string",
      "minLength": 80
    },
    "language_version_id": {
      "type": "string"
    },
    "permission_key": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "original_wording": {
      "type": "string"
    },
    "plain_language_wording": {
      "type": "string"
    },
    "authorizes": {
      "type": "string"
    },
    "does_not_authorize": {
      "type": "string"
    },
    "rationale": {
      "type": "string"
    },
    "legal_review_state": {
      "const": "not-performed"
    },
    "accessibility_review_state": {
      "const": "synthetic-structural-review-only"
    },
    "version_history": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object"
      }
    },
    "publication_gate": {
      "type": "object",
      "required": [
        "state",
        "publishable",
        "blockers"
      ],
      "properties": {
        "state": {
          "enum": [
            "blocked",
            "unresolved",
            "withdrawn",
            "demonstration-only"
          ]
        },
        "publishable": {
          "const": false
        },
        "blockers": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
