{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-workpiece-material-group-public-schema.json",
  "title": "WorkpieceMaterialGroupPublic",
  "description": "One node of the workpiece-material tree as the API renders it.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnm-io-materials-api-openapi.yml#/components/schemas/WorkpieceMaterialGroupPublic",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id",
      "description": "Unique identifier of the group."
    },
    "code": {
      "type": "string",
      "title": "Code",
      "description": "Short code, e.g. ``P1.2``."
    },
    "iso_letter": {
      "type": "string",
      "title": "Iso Letter",
      "description": "ISO 513 application group letter: P, M, K, N, S or H."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Composition / structure subgroup the node covers."
    },
    "hardness_band": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hardness Band",
      "description": "Hardness or strength band of the leaf, e.g. ``~275 HB``."
    },
    "parent_group_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Group Id",
      "description": "Parent node; null at the ISO-letter root."
    },
    "machinability_index_pct": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Machinability Index Pct",
      "description": "Relative machinability, 100 = free-cutting steel reference; null on a parent node."
    },
    "chip_class": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Chip Class",
      "description": "Chip form: short, medium, long or gummy."
    },
    "abrasiveness_class": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Abrasiveness Class",
      "description": "Tool-wear driver: low, medium, high or severe."
    },
    "work_hardening_class": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Work Hardening Class",
      "description": "Work-hardening tendency: low, medium or high."
    },
    "attributes": {
      "additionalProperties": true,
      "type": "object",
      "title": "Attributes",
      "description": "The group's own material statement — thermal figures, sheet-forming parameters and the categorical route gates (`laser_cuttable`, `weldability_class`, `heat_treatable`, …). A grade inherits every key it does not state itself, leaf first and the ISO letter last, so this is where most materials' process behaviour actually comes from. See `GET /materials/attribute-vocabulary` for what each key drives."
    }
  },
  "type": "object",
  "required": [
    "id",
    "code",
    "iso_letter",
    "name"
  ]
}