{
"inspect_part": {
"type": "object",
"properties": {
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/A"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/B"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/A"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/B"
}
},
"additionalProperties": {
"type": "string"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
},
"part": {
"type": "integer",
"minimum": 0
},
"detail": {
"type": "boolean"
},
"problem_filter": {
"type": "object",
"properties": {
"severity": {
"enum": [
null,
"info",
"warning",
"error"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(code|subject|feature)$(?!\n)": {
"$ref": "#/A"
}
}
}
},
"additionalProperties": false,
"anyOf": [
{
"required": [
"step"
]
},
{
"required": [
"part_ref"
]
}
],
"patternProperties": {
"^(spec_version|step|features|(part|drawing)_ref)$(?!\n)": {
"type": "string"
}
},
"A": {
"type": [
"string",
"null"
]
},
"B": {
"items": {
"type": "string"
},
"type": "array"
}
},
"list_items": {
"type": "object",
"properties": {
"part_ref": {
"$ref": "#/D"
},
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"max": {
"$ref": "#/C"
},
"smallest_scale": {
"$ref": "#/B"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/E"
}
},
"hole_table": {
"$ref": "#/C"
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"$ref": "#/D"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"$ref": "#/F"
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"$ref": "#/A"
},
"^(size|scale)$(?!\n)": {
"$ref": "#/B"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"$ref": "#/D"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"$ref": "#/A"
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"id": {
"$ref": "#/D"
},
"kind": {
"$ref": "#/D"
},
"faces": {
"$ref": "#/E"
}
},
"additionalProperties": false,
"minProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"$ref": "#/F"
}
}
},
"spec_version": {
"$ref": "#/D"
},
"drawing_ref": {
"$ref": "#/D"
},
"cursor": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"detail": {
"type": "boolean"
},
"filter": {
"type": "object",
"properties": {
"sheet": {
"$ref": "#/C"
},
"state": {
"anyOf": [
{
"anyOf": [
{
"enum": [
{
"kind": "shown"
},
{
"kind": "omitted_by_user"
},
{
"kind": "not_authored"
}
]
},
{
"properties": {
"kind": {
"const": "covered"
},
"by": {
"$ref": "#/D"
}
},
"additionalProperties": false,
"minProperties": 2
},
{
"properties": {
"kind": {
"const": "not_drawable"
},
"reason_code": {
"$ref": "#/D"
}
},
"additionalProperties": false,
"minProperties": 2
}
],
"type": "object"
},
{
"type": "null"
}
]
},
"region": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
},
"radius": {
"type": [
"number",
"null"
],
"minimum": 0
}
},
"additionalProperties": false,
"patternProperties": {
"^(view|kind|feature|near)$(?!\n)": {
"$ref": "#/B"
}
}
}
},
"required": [
"part_ref"
],
"additionalProperties": false,
"A": {
"type": [
"boolean",
"null"
]
},
"B": {
"type": [
"string",
"null"
]
},
"C": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
},
"D": {
"type": "string"
},
"E": {
"items": {
"$ref": "#/D"
},
"type": "array"
},
"F": {
"type": [
"object",
"null"
]
}
},
"get_item": {
"type": "object",
"properties": {
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/B"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/A"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/B"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/A"
}
},
"additionalProperties": {
"type": "string"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
},
"detail": {
"type": "boolean"
}
},
"required": [
"part_ref",
"id"
],
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"enum": [
"part_ref",
"spec",
"spec_version",
"drawing_ref",
"id",
"detail"
]
},
"A": {
"items": {
"type": "string"
},
"type": "array"
},
"B": {
"type": [
"string",
"null"
]
}
},
"list_problems": {
"type": "object",
"properties": {
"part_ref": {
"type": "string"
},
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/A"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/B"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/A"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/B"
}
},
"additionalProperties": {
"type": "string"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
},
"spec_version": {
"type": "string"
},
"drawing_ref": {
"type": "string"
},
"cursor": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"detail": {
"type": "boolean"
},
"filter": {
"type": "object",
"properties": {
"severity": {
"enum": [
null,
"info",
"warning",
"error"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(code|subject|feature)$(?!\n)": {
"$ref": "#/A"
}
}
}
},
"required": [
"part_ref"
],
"additionalProperties": false,
"A": {
"type": [
"string",
"null"
]
},
"B": {
"items": {
"type": "string"
},
"type": "array"
}
},
"item_options": {
"type": "object",
"properties": {
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/B"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/A"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/B"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/A"
}
},
"additionalProperties": {
"type": "string"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
}
},
"required": [
"part_ref",
"id"
],
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"enum": [
"part_ref",
"spec",
"spec_version",
"drawing_ref",
"id"
]
},
"A": {
"items": {
"type": "string"
},
"type": "array"
},
"B": {
"type": [
"string",
"null"
]
}
},
"preview_ops": {
"type": "object",
"properties": {
"part_ref": {
"$ref": "#/B"
},
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/C"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/A"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"$ref": "#/B"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/C"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"$ref": "#/B"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/A"
}
},
"additionalProperties": {
"$ref": "#/B"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
},
"spec_version": {
"$ref": "#/B"
},
"drawing_ref": {
"$ref": "#/B"
},
"cursor": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"detail": {
"type": "boolean"
},
"ops": {
"type": "array",
"items": {
"anyOf": [
{
"properties": {
"op": {
"enum": [
"set",
"add"
]
},
"path": {
"$ref": "#/B"
},
"value": {}
},
"additionalProperties": false,
"minProperties": 3
},
{
"properties": {
"op": {
"const": "remove"
},
"path": {
"$ref": "#/B"
}
},
"additionalProperties": false,
"minProperties": 2
}
],
"type": "object"
},
"maxItems": 32
}
},
"required": [
"part_ref",
"ops"
],
"additionalProperties": false,
"A": {
"items": {
"$ref": "#/B"
},
"type": "array"
},
"B": {
"type": "string"
},
"C": {
"type": [
"string",
"null"
]
}
},
"apply_ops": {
"type": "object",
"properties": {
"part_ref": {
"$ref": "#/A"
},
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/C"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/B"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"$ref": "#/A"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/C"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"$ref": "#/A"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/B"
}
},
"additionalProperties": {
"$ref": "#/A"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
},
"spec_version": {
"$ref": "#/A"
},
"drawing_ref": {
"$ref": "#/A"
},
"cursor": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"detail": {
"type": "boolean"
},
"ops": {
"type": "array",
"items": {
"anyOf": [
{
"properties": {
"op": {
"enum": [
"set",
"add"
]
},
"path": {
"$ref": "#/A"
},
"value": {}
},
"additionalProperties": false,
"minProperties": 3
},
{
"properties": {
"op": {
"const": "remove"
},
"path": {
"$ref": "#/A"
}
},
"additionalProperties": false,
"minProperties": 2
}
],
"type": "object"
},
"maxItems": 32
},
"parent": {
"$ref": "#/A"
}
},
"required": [
"part_ref",
"ops",
"parent"
],
"additionalProperties": false,
"A": {
"type": "string"
},
"B": {
"items": {
"$ref": "#/A"
},
"type": "array"
},
"C": {
"type": [
"string",
"null"
]
}
},
"view_sheet": {
"type": "object",
"properties": {
"part_ref": {
"$ref": "#/C"
},
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/B"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/A"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"$ref": "#/C"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/B"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"$ref": "#/C"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/A"
}
},
"additionalProperties": {
"$ref": "#/C"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
},
"spec_version": {
"$ref": "#/C"
},
"drawing_ref": {
"$ref": "#/C"
},
"region": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
},
"overlay_ids": {
"type": [
"boolean",
"array"
],
"items": {
"$ref": "#/C"
}
},
"sheet": {
"enum": [
1,
2,
3,
4,
5,
6,
7,
8,
9
]
},
"dpi": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 400
}
},
"required": [
"part_ref"
],
"additionalProperties": false,
"A": {
"items": {
"$ref": "#/C"
},
"type": "array"
},
"B": {
"type": [
"string",
"null"
]
},
"C": {
"type": "string"
}
},
"render_pdf": {
"type": "object",
"properties": {
"part_ref": {
"type": "string"
},
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/B"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/A"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/B"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/A"
}
},
"additionalProperties": {
"type": "string"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
},
"spec_version": {
"type": "string"
},
"drawing_ref": {
"type": "string"
},
"sheet": {
"enum": [
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
},
"required": [
"part_ref"
],
"additionalProperties": false,
"A": {
"items": {
"type": "string"
},
"type": "array"
},
"B": {
"type": [
"string",
"null"
]
}
},
"get_spec": {
"type": "object",
"properties": {
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/B"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/A"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/B"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/A"
}
},
"additionalProperties": {
"type": "string"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
}
},
"required": [
"part_ref"
],
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"enum": [
"part_ref",
"spec",
"spec_version",
"drawing_ref"
]
},
"A": {
"items": {
"type": "string"
},
"type": "array"
},
"B": {
"type": [
"string",
"null"
]
}
},
"render": {
"type": "object",
"properties": {
"spec": {
"type": "object",
"properties": {
"schema": {
"enum": [
"draftwright.spec/1",
"draftwright.spec/2",
"draftwright.spec/3",
"draftwright.spec/4"
]
},
"sheets": {
"type": [
"object",
"null"
],
"properties": {
"smallest_scale": {
"$ref": "#/B"
},
"keep_together": {
"type": "array",
"items": {
"$ref": "#/A"
}
},
"gdt_on_sheet_1": {
"type": "boolean"
}
},
"additionalProperties": false,
"patternProperties": {
"^(max|hole_table)$(?!\n)": {
"enum": [
null,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}
}
},
"sheet": {
"type": "object",
"properties": {
"preferred_max_sheets": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"preferred_max_size": {
"enum": [
null,
"A4",
"A3",
"A2",
"A1",
"A0",
"ANSI A",
"ANSI B",
"ANSI C",
"ANSI D",
"ANSI E",
"ARCH A",
"ARCH B",
"ARCH C",
"ARCH D",
"ARCH E"
]
},
"dimension_spacing": {
"enum": [
null,
"normal",
"compact"
]
},
"title": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"view_gutter": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1189
},
"projection": {
"enum": [
null,
"first",
"third"
]
},
"default_finish": {
"type": [
"object",
"null"
]
},
"paper": {
"enum": [
null,
"iso",
"ansi",
"arch"
]
},
"balloons": {
"enum": [
"off",
"all"
]
},
"table_columns": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
}
},
"additionalProperties": false,
"patternProperties": {
"^(references|hidden|keep_layout|zones|fit_(limits|deviations)|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
},
"^(size|scale)$(?!\n)": {
"$ref": "#/B"
}
}
},
"views": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"style": {
"anyOf": [
{
"enum": [
"wireframe",
"shaded"
],
"description": "Pictorial views (iso, iso_below) only. Absent keeps line drawing. Shaded is opaque vector fill plus visible sharp/silhouette edges; no hidden ink or annotations."
},
{
"type": "null"
}
]
},
"colour": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial base sRGB colour; default [184,196,204]."
},
{
"type": "null"
}
]
},
"direction": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"minItems": 3,
"maxItems": 3,
"description": "Pictorial vector towards viewer, nonzero and not parallel to Z; Z stays up. iso defaults [1,-1,1], iso_below [1,-1,-1]."
},
{
"type": "null"
}
]
},
"break": {
"type": [
"object",
"null"
],
"properties": {
"axis": {
"enum": [
"x",
"y",
"z"
]
},
"remove": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
},
"gap": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Retained gap in paper mm at every scale; default 6."
},
"aligned": {
"type": "boolean"
}
},
"additionalProperties": false
},
"detail": {
"type": [
"object",
"null"
],
"properties": {
"around": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"minItems": 1
},
"from": {
"type": [
"string",
"null"
],
"pattern": "^(front|plan|side|section_([a-h])\\2)(?![\\s\\S])"
},
"scale_factor": {
"type": "number",
"exclusiveMinimum": 1
}
},
"required": [
"around"
],
"additionalProperties": false
}
},
"patternProperties": {
"^(hidden|half_section|centre_(marks|lines)|(thread|knurl)_depiction)$(?!\n)": {
"type": [
"boolean",
"null"
]
}
}
},
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-H]$"
},
"through": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"minProperties": 2
}
}
}
},
"dimension_source": {
"enum": [
"auto",
"authored"
]
},
"hole_table": {
"enum": [
"auto",
"always",
"never"
]
},
"feature_declarations": {
"items": {
"properties": {
"faces": {
"$ref": "#/A"
}
},
"additionalProperties": {
"type": "string"
},
"required": [
"id",
"kind",
"faces"
],
"maxProperties": 3
}
},
"balloons": {
"type": "object",
"properties": {
"occurrences": {
"type": "boolean"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"suppress": {
"type": "boolean"
},
"position": {
"type": [
"array",
"null"
],
"items": {
"type": "number"
},
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"units": {
"enum": [
"mm",
"in"
]
}
},
"additionalProperties": false,
"patternProperties": {
"^(dimensions|annotations|features|faces|dimension_schemes)$(?!\n)": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"^(notes|tables|gears|feature_declarations)$(?!\n)": {
"type": "array",
"items": {
"type": "object"
}
},
"^(binding|engine_pins)$(?!\n)": {
"type": [
"object",
"null"
]
}
}
},
"part": {
"type": "integer",
"minimum": 0
},
"format": {
"enum": [
"png",
"pdf"
]
},
"region": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
},
"overlay_ids": {
"type": [
"boolean",
"array"
],
"items": {
"type": "string"
}
},
"sheet": {
"enum": [
1,
2,
3,
4,
5,
6,
7,
8,
9
]
},
"dpi": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 400
}
},
"additionalProperties": false,
"anyOf": [
{
"required": [
"step"
]
},
{
"required": [
"part_ref"
]
}
],
"patternProperties": {
"^(spec_version|step|features|(part|drawing)_ref)$(?!\n)": {
"type": "string"
}
},
"A": {
"items": {
"type": "string"
},
"type": "array"
},
"B": {
"type": [
"string",
"null"
]
}
}
}