fix: 更新cdsl_schema.json配置

This commit is contained in:
2026-08-27 14:00:44 +08:00
parent e7ade4aa00
commit 2ef31db17e
+18 -13
View File
@@ -46,22 +46,27 @@
"additionalProperties": false "additionalProperties": false
}, },
"hostFace": { "hostFace": {
"type": "object", "oneOf": [
"properties": { {
"frame": {
"type": "object", "type": "object",
"properties": { "properties": {
"origin_mm": {"$ref": "#/$defs/point3"}, "frame": {
"x_dir": {"$ref": "#/$defs/point3"}, "type": "object",
"y_dir": {"$ref": "#/$defs/point3"}, "properties": {
"normal": {"$ref": "#/$defs/point3"} "origin_mm": {"$ref": "#/$defs/point3"},
"x_dir": {"$ref": "#/$defs/point3"},
"y_dir": {"$ref": "#/$defs/point3"},
"normal": {"$ref": "#/$defs/point3"}
},
"required": ["origin_mm", "x_dir", "y_dir", "normal"],
"additionalProperties": false
}
}, },
"required": ["origin_mm", "x_dir", "y_dir", "normal"], "required": ["frame"],
"additionalProperties": false "additionalProperties": false
} },
}, {"$ref": "#/$defs/selectorRef"}
"required": ["frame"], ]
"additionalProperties": false
}, },
"holePosition": { "holePosition": {
"type": "object", "type": "object",
@@ -234,7 +239,7 @@
"depth_mm": {"type": "number", "minimum": 0}, "depth_mm": {"type": "number", "minimum": 0},
"end_condition": {"$ref": "#/$defs/endCondition"}, "end_condition": {"$ref": "#/$defs/endCondition"},
"positions": {"type": "array", "items": {"$ref": "#/$defs/holePosition"}}, "positions": {"type": "array", "items": {"$ref": "#/$defs/holePosition"}},
"host_face": {"$ref": "#/$defs/selectorRef"}, "host_face": {"$ref": "#/$defs/hostFace"},
"thread": {"type": "object"}, "thread": {"type": "object"},
"countersink": {"type": "object"}, "countersink": {"type": "object"},
"counterbore": {"type": "object"} "counterbore": {"type": "object"}