{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-matching-demands-schema-schema.json",
  "title": "MatchingDemandsSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-demand-api-openapi.yml#/components/schemas/MatchingDemandsSchema",
  "type": "object",
  "properties": {
    "missingSkills": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "Demand skills missing in resource's profile",
      "items": {
        "type": "string"
      }
    },
    "skillScoreRelevance": {
      "type": [
        "number",
        "null"
      ],
      "format": "float",
      "readOnly": true,
      "description": "Skill relevance score based on matching of demand and resource profile"
    },
    "demand": {
      "readOnly": true,
      "description": "Demand information in concise format",
      "allOf": [
        {
          "$ref": "#/$defs/ConciseDemandSchema"
        }
      ]
    },
    "validatedSkills": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "Demand skills validated in resource's profile",
      "items": {
        "type": "string"
      }
    },
    "finalScore": {
      "type": [
        "number",
        "null"
      ],
      "format": "float",
      "readOnly": true,
      "description": "The matching score (range 0 to 5) of demand and resource profile"
    },
    "titleScoreRelevance": {
      "type": [
        "number",
        "null"
      ],
      "format": "float",
      "readOnly": true,
      "description": "Title relevance score based on matching demand's hiring title with resource's experience titles"
    }
  },
  "$defs": {
    "ConciseDemandSchema": {
      "type": "object",
      "properties": {
        "demandId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Demand ID"
        },
        "extDemandId": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "External demand ID in the ATS system"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Title of the demand"
        },
        "locations": {
          "type": [
            "array",
            "null"
          ],
          "readOnly": true,
          "description": "The location(s) of the demand",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}