{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-cutting-tool-public-schema.json",
  "title": "CuttingToolPublic",
  "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/CuttingToolPublic",
  "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"
    },
    "catalogue_item_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Catalogue Item Id"
    },
    "valid_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Valid From"
    },
    "valid_to": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Valid To"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "parameters": {
      "items": {
        "$ref": "#/$defs/CuttingToolParameterPublic"
      },
      "type": "array",
      "title": "Parameters",
      "default": []
    },
    "hidden": {
      "type": "boolean",
      "title": "Hidden",
      "default": false
    },
    "differs_from_article": {
      "type": "boolean",
      "title": "Differs From Article",
      "default": false
    },
    "price_is_inherited": {
      "type": "boolean",
      "title": "Price Is Inherited",
      "default": false
    },
    "cutting_data_count": {
      "type": "integer",
      "title": "Cutting Data Count",
      "description": "Number of cutting-data rows this tool prices with: the values stated on the tool itself plus its catalogue article's data sheet. 0 means the tool carries none of its own and pricing resolves from the platform's cutting-data tables.",
      "default": 0
    },
    "baseline": {
      "anyOf": [
        {
          "$ref": "#/$defs/ToolBaselineMembership"
        },
        {
          "type": "null"
        }
      ]
    },
    "priced_into_quotes": {
      "type": "boolean",
      "title": "Priced Into Quotes",
      "description": "Whether a price and a life stated on this tool can reach a quote. False for kinds no pricing path consumes yet (welding and EDM consumables, brake punches, tube-bend dies): the tool is still storable, curatable and attachable to an environment, but its economics change no cost today. Laser and waterjet nozzles, plasma sets and punch sets are priced per pierce, minute or stroke.",
      "readOnly": true
    }
  },
  "type": "object",
  "required": [
    "name",
    "kind",
    "id",
    "created_at",
    "updated_at",
    "priced_into_quotes"
  ],
  "$defs": {
    "CuttingToolParameterPublic": {
      "properties": {
        "material_code": {
          "type": "string",
          "maxLength": 64,
          "title": "Material Code",
          "description": "Material group or workpiece-group code the value applies to (e.g. steel_C45 or P2.2)."
        },
        "operation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Operation",
          "description": "Operation this value is stated for (e.g. drill, face_mill); null = every operation this tool can do — a real semantic, not a sentinel."
        },
        "size_mm": {
          "anyOf": [
            {
              "type": "number",
              "exclusiveMinimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Size Mm",
          "description": "Size axis (sheet thickness, bar size); resolution takes the nearest row, and a null-size row applies at every size."
        },
        "quality": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 16
            },
            {
              "type": "null"
            }
          ],
          "title": "Quality",
          "description": "'production' | 'quality'; null = unspecified."
        },
        "parameter": {
          "type": "string",
          "maxLength": 32,
          "title": "Parameter",
          "description": "Parameter key in the resolver's own vocabulary (V_c, f_z, …)."
        },
        "value": {
          "type": "number",
          "exclusiveMinimum": 0.0,
          "title": "Value",
          "description": "The stated (start) value."
        },
        "value_min": {
          "anyOf": [
            {
              "type": "number",
              "exclusiveMinimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Value Min",
          "description": "Lower bound of the published window."
        },
        "value_max": {
          "anyOf": [
            {
              "type": "number",
              "exclusiveMinimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Value Max",
          "description": "Upper bound of the published window."
        },
        "source": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 255
            },
            {
              "type": "null"
            }
          ],
          "title": "Source",
          "description": "Where the value comes from (catalogue sheet, trial, ...)."
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "catalogue_item_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Catalogue Item Id"
        },
        "tool_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tool Id"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "material_code",
        "parameter",
        "value",
        "id",
        "created_at",
        "updated_at"
      ],
      "title": "CuttingToolParameterPublic"
    },
    "ToolBaselineMembership": {
      "properties": {
        "membership_id": {
          "type": "string",
          "format": "uuid",
          "title": "Membership Id"
        },
        "is_enabled": {
          "type": "boolean",
          "title": "Is Enabled"
        },
        "fits_machines": {
          "type": "boolean",
          "title": "Fits Machines",
          "default": true
        },
        "fits_machine_names": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fits Machine Names"
        }
      },
      "type": "object",
      "required": [
        "membership_id",
        "is_enabled"
      ],
      "title": "ToolBaselineMembership",
      "description": "The tool's membership in the org's DEFAULT environment: the row the\nSetup → Tools page switches on/off. ``None`` on the parent = the tool\nwas removed from the default environment, or was never attached (a\ncustom tool created with ``attach_to_environment_ids: []``)."
    },
    "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"
    }
  }
}