{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/clarivate/main/json-schema/clarivate-category-record-schema.json",
  "title": "CategoryRecord",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarivate-categories-api-openapi.yml#/components/schemas/CategoryRecord",
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Category unique identifier"
    },
    "name": {
      "type": "string",
      "description": "Category name"
    },
    "edition": {
      "type": "string",
      "description": "Category edition"
    },
    "categoryCode": {
      "type": "string",
      "description": "Two-letter category code"
    },
    "description": {
      "type": "string",
      "description": "Detailed information about a category"
    },
    "categoryCitationReports": {
      "$ref": "#/$defs/CategoryCitationReports"
    }
  },
  "$defs": {
    "CategoryCitationReports": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "List of reports available by JCR year",
        "properties": {
          "url": {
            "type": "string"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    }
  }
}