{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-part-folder-public-schema.json",
  "title": "PartFolderPublic",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnm-io-folders-api-openapi.yml#/components/schemas/PartFolderPublic",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 128,
      "title": "Name",
      "description": "Folder name, shown in the workspace tree. Unique among its siblings."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id",
      "description": "Unique identifier of the folder."
    },
    "parent_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Id",
      "description": "ID of the parent folder; null for a top-level folder."
    },
    "part_count": {
      "type": "integer",
      "title": "Part Count",
      "description": "Number of parts filed directly in this folder (excludes subfolders).",
      "default": 0
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "Timestamp when the folder was created (UTC, ISO 8601)."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "Timestamp when the folder was last updated (UTC, ISO 8601)."
    }
  },
  "type": "object",
  "required": [
    "name",
    "id",
    "created_at",
    "updated_at"
  ]
}