{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-org-material-override-public-schema.json",
  "title": "OrgMaterialOverridePublic",
  "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/OrgMaterialOverridePublic",
  "properties": {
    "internal_code": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Internal Code",
      "description": "Org-internal SKU / part code for this material."
    },
    "trade_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Trade Name",
      "description": "Vendor trade name (e.g. 'Inconel 718')."
    },
    "notes": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes",
      "description": "Free-text notes attached to this material by the organization."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id",
      "description": "Unique identifier of the override."
    },
    "org_id": {
      "type": "string",
      "format": "uuid",
      "title": "Org Id",
      "description": "Identifier of the organization that owns this override."
    },
    "material_grade_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Material Grade Id",
      "description": "Identifier of the canonical grade this override extends; null when fully org-private."
    },
    "urn": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Urn",
      "description": "Canonical or org-private URN identifying the material."
    },
    "attributes": {
      "additionalProperties": true,
      "type": "object",
      "title": "Attributes",
      "description": "Your organization's material statement for this grade — the mechanical and physical figures and the categorical route gates it states, each one winning over the catalogue's. A closed vocabulary; `GET /materials/attribute-vocabulary` lists every key, its unit or its verdicts, and what the costing engine does with it. A row written before the vocabulary closed may still carry a key outside it: it is served back unchanged and prices exactly as it did, but the next write to this row must drop it."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "Timestamp when the override was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "Timestamp when the override was last updated."
    }
  },
  "type": "object",
  "required": [
    "id",
    "org_id",
    "created_at",
    "updated_at"
  ]
}