{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-eligibility-request-schema.json",
  "title": "EligibilityRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-check-enhanced-dental-eligibility-api-openapi.yml#/components/schemas/EligibilityRequest",
  "type": "object",
  "required": [
    "query",
    "variables"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "GraphQL query string"
    },
    "variables": {
      "$ref": "#/$defs/EligibilityVariables"
    }
  },
  "$defs": {
    "EligibilityInput": {
      "type": "object",
      "required": [
        "dateOfBirth",
        "firstName",
        "lastName",
        "memberId",
        "payerId"
      ],
      "properties": {
        "dateOfBirth": {
          "type": "string",
          "format": "date"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "memberId": {
          "type": "string"
        },
        "payerId": {
          "type": "string"
        },
        "providerFirstName": {
          "type": "string"
        },
        "providerLastName": {
          "type": "string"
        },
        "providerNPI": {
          "type": "string"
        },
        "serviceStartDate": {
          "type": "string",
          "format": "date"
        },
        "serviceEndDate": {
          "type": "string",
          "format": "date"
        },
        "coverageTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "EligibilityVariables": {
      "type": "object",
      "properties": {
        "input": {
          "$ref": "#/$defs/EligibilityInput"
        }
      }
    }
  }
}