{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crunchtime-information-systems/json-schema/crunchtime-information-systems-category-details-list-schema.json",
  "title": "CategoryDetailsList",
  "description": "CategoryDetailsList description",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crunchtime-information-systems-category-service-api-openapi.yml#/components/schemas/CategoryDetailsList",
  "type": "object",
  "properties": {
    "categoryDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CategoryDetails"
      }
    },
    "locationCode": {
      "type": "string",
      "description": "\"Code\" from Company setup screen."
    }
  },
  "$defs": {
    "CategoryDetails": {
      "type": "object",
      "properties": {
        "categoryDetailDetails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CategoryDetailsDto"
          }
        }
      },
      "title": "CategoryDetails",
      "description": "CategoryDetails description"
    },
    "CategoryDetailsDto": {
      "type": "object",
      "required": [
        "categoryName",
        "glDescription"
      ],
      "properties": {
        "categoryName": {
          "type": "string",
          "description": "The Name of the Category in Enterprise Manager."
        },
        "glDescription": {
          "type": "string",
          "description": "The General Ledger Description associated with the Category."
        },
        "microcategoryName": {
          "type": "string",
          "description": "The name of the Microcategory associated with the Category and Subcategory. Required once you opt to use a Microcategory for any Category record."
        },
        "subcategoryName": {
          "type": "string",
          "description": "The name of the Subcategory associated with the Category. Required once you opt to use a Subcategory for any Category record. "
        }
      },
      "title": "CategoryDetailsDto",
      "description": "CategoryDetailsDto description"
    }
  }
}