{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-part-revision-public-schema.json",
  "title": "PartRevisionPublic",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnm-io-parts-api-openapi.yml#/components/schemas/PartRevisionPublic",
  "properties": {
    "revision_code": {
      "type": "string",
      "maxLength": 16,
      "title": "Revision Code",
      "description": "Customer-facing revision label (A, B, 01, 02, …)."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id",
      "description": "Unique identifier of the revision."
    },
    "part_id": {
      "type": "string",
      "format": "uuid",
      "title": "Part Id",
      "description": "ID of the part this revision belongs to."
    },
    "parent_revision_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Revision Id",
      "description": "ID of the revision this one was derived from, recording its lineage."
    },
    "attributes": {
      "additionalProperties": true,
      "type": "object",
      "title": "Attributes",
      "description": "Free-form key/value metadata for the revision."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "Timestamp when the revision was created (UTC, ISO 8601)."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "Timestamp when the revision was last updated (UTC, ISO 8601)."
    }
  },
  "type": "object",
  "required": [
    "revision_code",
    "id",
    "part_id",
    "created_at",
    "updated_at"
  ]
}