{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karmacheck/json-schema/karmacheck-cplcdefinition-schema.json",
  "title": "CPLCDefinition",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/karmacheck-services-api-openapi.yml#/components/schemas/CPLCDefinition",
  "type": "object",
  "properties": {
    "id": {
      "description": "The [unique identifier](docs/reference/cplc.md) of a professional license or certification.\n",
      "type": "string"
    },
    "name": {
      "description": "The [name](docs/reference/cplc.md) of the professional license or certification.",
      "type": "string"
    },
    "category": {
      "type": "string",
      "enum": [
        "Finance",
        "General",
        "Healthcare",
        "Other"
      ],
      "description": "The category that the professional license or certification falls under."
    },
    "enabled": {
      "type": "boolean",
      "description": "True if verification of the professional license or certification is enabled in KarmaCheck; false otherwise."
    },
    "crStamp": {
      "type": "string",
      "format": "date-time"
    },
    "modStamp": {
      "type": "string",
      "format": "date-time"
    },
    "fields": {
      "type": "array",
      "description": "Information about each field that's associated with the professional license or certification. Each field represents a specific piece of information, such as the issue date or completion date of the license or certification.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "fieldId": {
            "type": "string",
            "description": "The ID of a field."
          },
          "cplcId": {
            "type": "string",
            "description": "The ID of the professional license or certification."
          },
          "label": {
            "type": "string",
            "description": "The descriptive label for the field."
          },
          "required": {
            "type": "boolean",
            "description": "True if information for the field needs to be provided; false otherwise."
          },
          "displayLabel": {
            "type": "string"
          },
          "crStamp": {
            "type": "string",
            "format": "date-time"
          },
          "modStamp": {
            "type": "string",
            "format": "date-time"
          },
          "ordinal": {
            "type": "number"
          },
          "placeholder": {
            "type": "string"
          }
        }
      }
    }
  }
}