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) <noreply@anthropic.com>
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user