{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crunchtime-information-systems/json-schema/crunchtime-information-systems-get-hierarchy-v1-details-response-schema.json",
  "title": "GetHierarchyV1DetailsResponse",
  "description": "GetHierarchyV1DetailsResponse description",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crunchtime-information-systems-hierarchy-service-api-openapi.yml#/components/schemas/GetHierarchyV1DetailsResponse",
  "type": "object",
  "properties": {
    "hierarchyType": {
      "type": "string",
      "description": "\"Hierarchy Type\" (the name of the hierarchy) from Hierarchy setup screen."
    },
    "levels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HierarchyV1LevelDto"
      }
    },
    "locationCode": {
      "type": "string",
      "description": "\"Location Code\" from Hierarchy setup screen."
    },
    "locations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HierarchyDetailDto"
      }
    }
  },
  "$defs": {
    "HierarchyDetailDto": {
      "type": "object",
      "required": [
        "levelDescription",
        "levelName",
        "levelNumber"
      ],
      "properties": {
        "hasChildren": {
          "type": "boolean",
          "description": "Indicates whether the hierarchy has more than just one level. Valid values are 'true' or 'false'."
        },
        "levelDescription": {
          "type": "string",
          "description": "\"Level Description\" from Hierarchy setup screen."
        },
        "levelName": {
          "type": "string",
          "description": "\"Level Name\" from Hierarchy setup screen."
        },
        "levelNumber": {
          "type": "integer",
          "format": "int64",
          "description": "\"Nierarchy Level\" number from Hierarchy setup screen."
        },
        "locationCode": {
          "type": "string",
          "description": "\"Code\" for the physical location from Hierarchy setup screen."
        },
        "locationName": {
          "type": "string",
          "description": "Name for the physical \"Location\" from Hierarchy setup screen."
        },
        "logicalName": {
          "type": "string",
          "description": "Name for the logical \"Location\" from Hierarchy setup screen."
        },
        "parentLogicalName": {
          "type": "string",
          "description": "Name of the \"Parent Location\" from Hierarchy setup screen."
        }
      },
      "title": "HierarchyDetailDto",
      "description": "Hierarchy Detail description"
    },
    "HierarchyV1LevelDto": {
      "type": "object",
      "required": [
        "levelDescription",
        "levelName",
        "levelNumber"
      ],
      "properties": {
        "levelDescription": {
          "type": "string",
          "description": "\"Level Description\" from Hierarchy setup screen."
        },
        "levelName": {
          "type": "string",
          "description": "\"Level Name\" from Hierarchy setup screen."
        },
        "levelNumber": {
          "type": "integer",
          "format": "int64",
          "description": "\"Hierarchy Level\" number from Hierarchy setup screen."
        }
      },
      "title": "HierarchyV1LevelDto",
      "description": "Hierarchy V1 Level Dto description"
    }
  }
}