{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/maxcv-ai/json-schema/maxcv-ai-phrase-assessment-schema.json",
  "title": "PhraseAssessment",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/maxcv-ai-openapi.yml#/components/schemas/PhraseAssessment",
  "type": "object",
  "required": [
    "method",
    "score",
    "phraseCount",
    "matchedPhraseCount",
    "missingPhraseCount",
    "phrases",
    "matched",
    "missing",
    "inventoryHash",
    "inventoryVersion"
  ],
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "offer-phrase-coverage-v1"
      ]
    },
    "score": {
      "type": "number",
      "description": "Rounded percentage of frozen offer phrases positively present in the CV; zero when phraseCount=0."
    },
    "phraseCount": {
      "type": "integer"
    },
    "matchedPhraseCount": {
      "type": "integer"
    },
    "missingPhraseCount": {
      "type": "integer"
    },
    "phrases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "matched": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "inventoryHash": {
      "type": "string",
      "description": "sha256 hex of the canonical phrase inventory. The offer is read once per exact offer text and reused, so equal hashes mean an identical denominator; before/after share it."
    },
    "inventoryVersion": {
      "type": "string",
      "description": "Phrase inventory policy version (nested phrases count once: a phrase containing another inventory phrase as a whole word is dropped)."
    }
  }
}