{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/numberrank-dev/json-schema/numberrank-dev-check-schema.json",
  "title": "Check",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/numberrank-dev-openapi.yml#/components/schemas/Check",
  "type": "object",
  "properties": {
    "number": {
      "type": "string"
    },
    "display": {
      "type": "string"
    },
    "valid": {
      "type": "boolean"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "mobile",
        "landline",
        "fixedVoip",
        "nonFixedVoip",
        "voip",
        "tollFree",
        "personal",
        "premium",
        "sharedCost",
        "uan",
        "voicemail",
        "pager",
        "unknown",
        null
      ]
    },
    "carrier": {
      "type": [
        "string",
        "null"
      ]
    },
    "mcc": {
      "type": [
        "string",
        "null"
      ]
    },
    "mnc": {
      "type": [
        "string",
        "null"
      ]
    },
    "score": {
      "type": [
        "integer",
        "null"
      ],
      "description": "mobile 95, fixedVoip 45, nonFixedVoip 15, voip 15, landline 10, otherwise null"
    },
    "grade": {
      "type": [
        "string",
        "null"
      ],
      "description": "A 90-100, B 70-89, C 50-69, D 30-49, F 0-29"
    },
    "verdict": {
      "type": "object",
      "properties": {
        "pass": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      }
    },
    "provider": {
      "type": "string"
    }
  }
}