重构 改为标准化输出
This commit is contained in:
@@ -279,6 +279,25 @@
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"constructionBsplineSegment": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {"const": "bspline"},
|
||||
"degree": {"type": "integer", "minimum": 1},
|
||||
"control_points": {"type": "array", "minItems": 2, "items": {"$ref": "#/$defs/point2"}},
|
||||
"knots": {"type": "array", "minItems": 2, "items": {"type": "number"}},
|
||||
"periodic": {"type": "boolean"},
|
||||
"weights": {"type": "array", "minItems": 2, "items": {"type": "number", "exclusiveMinimum": 0}}
|
||||
},
|
||||
"required": ["type", "degree", "control_points", "knots", "periodic"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"constructionSegment": {
|
||||
"oneOf": [
|
||||
{"$ref": "#/$defs/analyticSegment"},
|
||||
{"$ref": "#/$defs/constructionBsplineSegment"}
|
||||
]
|
||||
},
|
||||
"analyticContour": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -294,7 +313,7 @@
|
||||
"properties": {
|
||||
"type": {"const": "analytic_contours"},
|
||||
"contours": {"type": "array", "items": {"$ref": "#/$defs/analyticContour"}},
|
||||
"construction": {"type": "array", "items": {"$ref": "#/$defs/analyticSegment"}}
|
||||
"construction": {"type": "array", "items": {"$ref": "#/$defs/constructionSegment"}}
|
||||
},
|
||||
"required": ["type", "contours"],
|
||||
"additionalProperties": false
|
||||
|
||||
Reference in New Issue
Block a user