{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zywave/json-schema/zywave-course-category-schema.json",
  "title": "CourseCategory",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-coursecategory-api-openapi.yml#/components/schemas/CourseCategory",
  "allOf": [
    {
      "$ref": "#/$defs/CourseCategoryCreateInfo"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "isReadOnly"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "isReadOnly": {
          "type": "boolean"
        },
        "createdDateTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdUserPrincipalId": {
          "type": [
            "string",
            "null"
          ],
          "format": "guid"
        },
        "updatedDateTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updatedUserPrincipalId": {
          "type": [
            "string",
            "null"
          ],
          "format": "guid"
        }
      }
    }
  ],
  "$defs": {
    "CourseCategoryCreateInfo": {
      "allOf": [
        {
          "$ref": "#/$defs/CourseCategoryUpdateInfo"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "accountId": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int32"
            }
          }
        }
      ]
    },
    "CourseCategoryUpdateInfo": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        }
      }
    }
  }
}