{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://evidence.contact/offer-terms-reference.schema.json",
  "title": "Offer terms reference comparison",
  "type": "object",
  "properties": {
    "protocol": {
      "type": "string",
      "const": "402mob.offer-terms-reference.v1"
    },
    "expectedHashSupplied": {
      "type": "boolean"
    },
    "comparison": {
      "type": "string",
      "enum": [
        "matched",
        "mismatched",
        "not_supplied",
        "not_applicable",
        "unavailable"
      ]
    },
    "sourceClaim": {
      "type": "string",
      "enum": [
        "saved_before_purchase",
        "copied_from_bundle",
        "unknown"
      ]
    },
    "sourceClaimVerified": {
      "type": "boolean",
      "const": false
    },
    "statement": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    }
  },
  "required": [
    "protocol",
    "expectedHashSupplied",
    "comparison",
    "sourceClaim",
    "sourceClaimVerified",
    "statement"
  ],
  "additionalProperties": false
}
