From e6eac972a7e07f47602f590ec72c0919b893188c Mon Sep 17 00:00:00 2001 From: Judson Stephenson Date: Wed, 3 Jun 2026 13:27:33 -0500 Subject: [PATCH] fix(schemas): include mil in the remaining unit enums add_mounting_hole, check_courtyard_overlaps and query_zones offered only mm/inch. Add mil so every unit enum is consistent (enforced by test_mil_unit_support). Co-Authored-By: Claude Opus 4.8 (1M context) --- python/schemas/tool_schemas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/schemas/tool_schemas.py b/python/schemas/tool_schemas.py index 3088d61..5197958 100644 --- a/python/schemas/tool_schemas.py +++ b/python/schemas/tool_schemas.py @@ -311,7 +311,7 @@ BOARD_TOOLS = [ "y": {"type": "number", "description": "Y coordinate"}, "unit": { "type": "string", - "enum": ["mm", "inch"], + "enum": ["mm", "mil", "inch"], "default": "mm", "description": "Unit for x/y (default mm)", }, @@ -793,7 +793,7 @@ COMPONENT_TOOLS = [ "y2": {"type": "number"}, "unit": { "type": "string", - "enum": ["mm", "inch"], + "enum": ["mm", "mil", "inch"], "default": "mm", }, }, @@ -1022,7 +1022,7 @@ ROUTING_TOOLS = [ "y2": {"type": "number", "description": "Bottom Y coordinate"}, "unit": { "type": "string", - "enum": ["mm", "inch"], + "enum": ["mm", "mil", "inch"], "default": "mm", }, },