{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-tool-catalogue-item-public-schema.json",
  "title": "ToolCatalogueItemPublic",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnm-io-tools-api-openapi.yml#/components/schemas/ToolCatalogueItemPublic",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255,
      "title": "Name",
      "description": "Human-readable name of the tool."
    },
    "kind": {
      "$ref": "#/$defs/ToolKind",
      "description": "Tool kind (VDI 2852 class), e.g. end_mill or drill."
    },
    "diameter_mm": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Diameter Mm",
      "description": "Cutting diameter, in millimetres (null for turning inserts)."
    },
    "teeth": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 400.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Teeth",
      "description": "Number of cutting edges / flutes / blade teeth."
    },
    "cutting_material": {
      "type": "string",
      "title": "Cutting Material",
      "description": "Cutting-material class (HSS, carbide, coated carbide, ...).",
      "default": "carbide"
    },
    "coating": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Coating",
      "description": "Coating designation (e.g. TiAlN), if any."
    },
    "vendor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Vendor",
      "description": "Tool manufacturer / vendor."
    },
    "item_no": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Item No",
      "description": "Vendor item / order number."
    },
    "price_eur": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Eur",
      "description": "Replacement price, in EUR."
    },
    "tool_life_min": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Life Min",
      "description": "Expected tool life in cutting minutes (per edge set)."
    },
    "notes": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes",
      "description": "Free-form shop notes."
    },
    "spec": {
      "additionalProperties": true,
      "type": "object",
      "title": "Spec",
      "description": "Kind-specific properties — e.g. a press-brake die's V opening and load rating, a saw blade's kerf and pitch, a plasma consumable set's amperage. Validated per kind; empty for rotating cutters, whose geometry uses the fields above."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "org_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Org Id"
    },
    "preset_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Preset Key"
    },
    "properties": {
      "additionalProperties": true,
      "type": "object",
      "title": "Properties",
      "default": {}
    },
    "connection_interface": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Connection Interface"
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source"
    },
    "adopted_tool_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Adopted Tool Id"
    },
    "suppressed": {
      "type": "boolean",
      "title": "Suppressed",
      "default": false
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "name",
    "kind",
    "id",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "ToolKind": {
      "type": "string",
      "enum": [
        "end_mill",
        "face_mill",
        "drill",
        "spot_drill",
        "centre_drill",
        "tap",
        "reamer",
        "boring_bar",
        "thread_mill",
        "insert_holder_turn",
        "grooving_tool",
        "grinding_wheel",
        "chamfer_mill",
        "countersink",
        "counterbore",
        "saw_blade",
        "edm_wire",
        "press_brake_punch",
        "press_brake_die",
        "tube_bend_die",
        "plasma_consumable_set",
        "laser_nozzle",
        "waterjet_nozzle",
        "punch_die_set",
        "weld_consumable",
        "broach"
      ],
      "title": "ToolKind"
    }
  }
}