draftwright 0.6.1

Dimensioned engineering drawings from STEP, with SVG, PDF and editable DXF output.
Documentation
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Draftwright Plan hole-table presentation fields",
  "description": "The hole-table presentation portion of draftwright.plan/1. Other Plan and annotation fields remain unconstrained by this schema. Optional recovery metadata is preserved in saved plans. Problems carry an additive engine-owned printing-priority tier. Older saved plans may omit it; serialization recomputes it.",
  "type": "object",
  "required": [
    "schema"
  ],
  "properties": {
    "schema": {
      "const": "draftwright.plan/1"
    },
    "hole_table": {
      "anyOf": [
        {
          "$ref": "#/$defs/hole_table"
        },
        {
          "type": "null"
        }
      ]
    },
    "hole_tables": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/hole_table"
      }
    },
    "balloons": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/balloon"
      }
    },
    "problems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/problem"
      }
    }
  },
  "$defs": {
    "rectangle": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "minItems": 4,
      "maxItems": 4
    },
    "hole_row": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tag",
        "feature",
        "cells",
        "measurements"
      ],
      "properties": {
        "tag": {
          "type": "string"
        },
        "tag_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Original stable row/cell identity token when tag is relabelled; defaults to tag."
        },
        "feature": {
          "type": "string"
        },
        "cells": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "measurements": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      }
    },
    "hole_table": {
      "type": "object",
      "properties": {
        "rows": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/hole_row"
          }
        },
        "row_order_before": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true,
          "description": "Exact legacy sequence of stable row keys; absent until a final spatial permutation. Recovery restores this sequence and removes the field."
        }
      }
    },
    "balloon": {
      "type": "object",
      "properties": {
        "label_box": {
          "anyOf": [
            {
              "$ref": "#/$defs/rectangle"
            },
            {
              "type": "null"
            }
          ]
        },
        "label_box_before": {
          "anyOf": [
            {
              "$ref": "#/$defs/rectangle"
            },
            {
              "type": "null"
            }
          ],
          "description": "Exact original transported text bounds, retained when a final label changes width. Recovery restores these bounds without floating-point reconstruction."
        }
      }
    },
    "problem": {
      "type": "object",
      "properties": {
        "tier": {
          "enum": [
            "fix_before_printing",
            "tidy",
            "information"
          ],
          "description": "Engine-owned printing priority; see docs/finding-impact.md for exhaustive code mapping and severity-dependent coverage rules."
        }
      }
    }
  }
}