{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ivans/json-schema/ivans-paginated-ncciclassification-code-detail-list-schema.json",
  "title": "PaginatedNCCIClassificationCodeDetailList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ivans-ncci-api-openapi.yml#/components/schemas/PaginatedNCCIClassificationCodeDetailList",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NCCIClassificationCodeDetail"
      }
    }
  },
  "$defs": {
    "NCCIClassificationCodeDetail": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "persistentId": {
          "type": "string",
          "readOnly": true,
          "description": "A hash of the code and description.Used to match the same code across different versions of the same Classification Standard."
        },
        "code": {
          "type": "string",
          "maxLength": 10
        },
        "description": {
          "type": "string"
        },
        "states": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SubdivisionSimple"
          }
        },
        "standard": {
          "$ref": "#/$defs/Standard"
        }
      },
      "required": [
        "code",
        "description",
        "persistentId",
        "standard",
        "states",
        "uuid"
      ]
    },
    "Standard": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 128
        },
        "externalId": {
          "type": "string",
          "maxLength": 255
        },
        "market": {
          "type": [
            "string",
            "null"
          ]
        },
        "marketName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lineOfBusiness": {
          "type": [
            "string",
            "null"
          ]
        },
        "lineOfBusinessCode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "externalId",
        "lineOfBusiness",
        "lineOfBusinessCode",
        "market",
        "marketName",
        "name"
      ]
    },
    "SubdivisionSimple": {
      "type": "object",
      "properties": {
        "alpha2": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 2
        },
        "uuid": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        }
      },
      "required": [
        "uuid"
      ]
    }
  }
}