altium-toolkit 1.1.3 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -5
- package/docs/api.md +171 -23
- package/docs/model-format.md +192 -20
- package/docs/schemas/altium_toolkit/embedded_assets_a1.schema.json +56 -0
- package/docs/schemas/altium_toolkit/fixture_coverage_matrix_a1.schema.json +89 -0
- package/docs/schemas/altium_toolkit/geometry_bounds_a1.schema.json +86 -0
- package/docs/schemas/altium_toolkit/library_catalog_a1.schema.json +65 -0
- package/docs/schemas/altium_toolkit/library_diff_a1.schema.json +54 -0
- package/docs/schemas/altium_toolkit/library_inspection_a1.schema.json +94 -0
- package/docs/schemas/altium_toolkit/library_qa_a1.schema.json +4 -0
- package/docs/schemas/altium_toolkit/native_stream_inventory_a1.schema.json +66 -0
- package/docs/schemas/altium_toolkit/normalized_model_a1.schema.json +513 -3
- package/docs/schemas/altium_toolkit/parameter_record_inventory_a1.schema.json +84 -0
- package/docs/schemas/altium_toolkit/parser_diagnostics_a1.schema.json +63 -0
- package/docs/schemas/altium_toolkit/parser_value_verification_a1.schema.json +74 -0
- package/docs/schemas/altium_toolkit/pcb_class_report_a1.schema.json +79 -0
- package/docs/schemas/altium_toolkit/pcb_inspection_a1.schema.json +65 -0
- package/docs/schemas/altium_toolkit/pcb_net_membership_a1.schema.json +98 -0
- package/docs/schemas/altium_toolkit/project_bundle_a1.schema.json +3 -0
- package/docs/schemas/altium_toolkit/project_hierarchy_a1.schema.json +79 -0
- package/docs/schemas/altium_toolkit/unsupported_features_a1.schema.json +212 -0
- package/docs/testing.md +7 -0
- package/examples/README.md +21 -0
- package/examples/cli-utils.mjs +148 -0
- package/examples/corpus-smoke.mjs +523 -0
- package/examples/extract-bom.mjs +47 -0
- package/examples/generate-pnp.mjs +59 -0
- package/examples/inspect-board.mjs +70 -0
- package/examples/inspect-schematic.mjs +406 -0
- package/examples/library-catalog.mjs +115 -0
- package/examples/net-report.mjs +61 -0
- package/examples/validate-library.mjs +59 -0
- package/package.json +1 -1
- package/spec/library-scope.md +5 -0
- package/src/core/BinaryReader.mjs +213 -2
- package/src/core/altium/AltiumLibraryBatchExporter.mjs +206 -0
- package/src/core/altium/AltiumLibraryRecordBuilder.mjs +293 -0
- package/src/core/altium/AltiumParser.mjs +357 -16
- package/src/core/altium/AltiumPcbLibExporter.mjs +101 -0
- package/src/core/altium/AltiumSchLibExporter.mjs +57 -0
- package/src/core/altium/AltiumUnits.mjs +205 -0
- package/src/core/altium/AsciiRecordParser.mjs +52 -11
- package/src/core/altium/EmbeddedAssetReportBuilder.mjs +383 -0
- package/src/core/altium/FixtureCoverageMatrixBuilder.mjs +304 -0
- package/src/core/altium/GeometryBoundsReportBuilder.mjs +935 -0
- package/src/core/altium/LibraryCatalogArtifactBuilder.mjs +296 -0
- package/src/core/altium/LibraryDiffReportBuilder.mjs +260 -0
- package/src/core/altium/LibraryInspectionReportBuilder.mjs +156 -0
- package/src/core/altium/LibraryQaReportBuilder.mjs +374 -1
- package/src/core/altium/NativeStreamInventoryBuilder.mjs +177 -0
- package/src/core/altium/NormalizedModelSchema.mjs +3 -31
- package/src/core/altium/ParameterCollection.mjs +431 -0
- package/src/core/altium/ParameterRecordInventoryBuilder.mjs +274 -0
- package/src/core/altium/ParserCompatibilityFuzzer.mjs +106 -2
- package/src/core/altium/ParserDiagnosticNormalizer.mjs +213 -0
- package/src/core/altium/ParserErrors.mjs +90 -0
- package/src/core/altium/ParserFieldCoverageReportBuilder.mjs +656 -0
- package/src/core/altium/ParserUtils.mjs +24 -0
- package/src/core/altium/ParserValueVerificationReportBuilder.mjs +323 -0
- package/src/core/altium/PcbClassReportBuilder.mjs +366 -0
- package/src/core/altium/PcbComponentKindPolicy.mjs +9 -9
- package/src/core/altium/PcbEmbeddedModelExtractor.mjs +22 -3
- package/src/core/altium/PcbInspectionReportBuilder.mjs +313 -0
- package/src/core/altium/PcbLayerGroups.mjs +308 -0
- package/src/core/altium/PcbLayerStackCustomDataParser.mjs +183 -0
- package/src/core/altium/PcbLayerStackInterchangeParser.mjs +473 -4
- package/src/core/altium/PcbLayerStackReadModelBuilder.mjs +83 -15
- package/src/core/altium/PcbLayerStackSourceMetadataParser.mjs +74 -4
- package/src/core/altium/PcbLibModelParser.mjs +20 -4
- package/src/core/altium/PcbLibStreamExtractor.mjs +49 -6
- package/src/core/altium/PcbModelParser.mjs +223 -4
- package/src/core/altium/PcbNetMembershipReportBuilder.mjs +270 -0
- package/src/core/altium/PcbOutlineRecovery.mjs +94 -0
- package/src/core/altium/PcbStreamExtractor.mjs +130 -6
- package/src/core/altium/PcbTrackPrimitiveParser.mjs +66 -2
- package/src/core/altium/ProjectDesignBundleBuilder.mjs +15 -0
- package/src/core/altium/ProjectHierarchyReportBuilder.mjs +660 -0
- package/src/core/altium/ProjectNetlistExporter.mjs +2 -0
- package/src/core/altium/RawDataPreservationReportBuilder.mjs +348 -0
- package/src/core/altium/SchLibModelParser.mjs +840 -0
- package/src/core/altium/SchLibStreamExtractor.mjs +586 -0
- package/src/core/altium/SchematicBusEntryParser.mjs +3 -2
- package/src/core/altium/SchematicCodeSymbolParser.mjs +663 -0
- package/src/core/altium/SchematicConnectivityQaBuilder.mjs +177 -2
- package/src/core/altium/SchematicDirectiveParser.mjs +5 -17
- package/src/core/altium/SchematicDisplayModeCatalogParser.mjs +10 -1
- package/src/core/altium/SchematicFieldCoverageReportBuilder.mjs +549 -0
- package/src/core/altium/SchematicHarnessParser.mjs +9 -3
- package/src/core/altium/SchematicHyperlinkParser.mjs +122 -0
- package/src/core/altium/SchematicNetlistBuilder.mjs +271 -8
- package/src/core/altium/SchematicNoErcSymbolResolver.mjs +36 -0
- package/src/core/altium/SchematicOwnershipGraphParser.mjs +102 -3
- package/src/core/altium/SchematicPinParser.mjs +99 -65
- package/src/core/altium/SchematicPrimitiveParser.mjs +125 -22
- package/src/core/altium/SchematicQaReportBuilder.mjs +2 -0
- package/src/core/altium/SchematicRecordStreamParser.mjs +183 -0
- package/src/core/altium/SchematicRecordTypeRegistry.mjs +6 -1
- package/src/core/altium/SchematicSheetParser.mjs +8 -2
- package/src/core/altium/SchematicStreamExtractor.mjs +107 -21
- package/src/core/altium/SchematicTextOrientationResolver.mjs +76 -0
- package/src/core/altium/SchematicTextParser.mjs +28 -12
- package/src/core/altium/SchematicTextRunParser.mjs +81 -0
- package/src/core/altium/SchematicThumbnailParser.mjs +425 -0
- package/src/core/altium/SourceBundleExporter.mjs +156 -0
- package/src/core/altium/SourceComponentBundleNormalizer.mjs +295 -0
- package/src/core/altium/SourceComponentClient.mjs +239 -0
- package/src/core/altium/UnsupportedFeatureReportBuilder.mjs +380 -0
- package/src/core/ole/OleCompoundDocumentWriter.mjs +449 -0
- package/src/parser.mjs +43 -1
- package/src/renderers.mjs +1 -0
- package/src/styles/altium-renderers.css +6 -6
- package/src/ui/PcbArcUtils.mjs +19 -2
- package/src/ui/PcbScene3dBuilder.mjs +202 -20
- package/src/ui/PcbScene3dModelRegistry.mjs +28 -18
- package/src/ui/PcbScene3dPlacementSideResolver.mjs +48 -6
- package/src/ui/SchematicColorResolver.mjs +185 -0
- package/src/ui/SchematicDirectiveRenderer.mjs +133 -22
- package/src/ui/SchematicLineColorResolver.mjs +88 -0
- package/src/ui/SchematicNoteRenderer.mjs +5 -1
- package/src/ui/SchematicOwnerPinLabelLayout.mjs +269 -8
- package/src/ui/SchematicOwnerPinMarkerLineThemer.mjs +155 -0
- package/src/ui/SchematicPinSvgRenderer.mjs +229 -62
- package/src/ui/SchematicShapeRenderer.mjs +86 -17
- package/src/ui/SchematicSvgRenderer.mjs +980 -58
- package/src/ui/SchematicTypography.mjs +4 -3
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "altium-toolkit.parameter-record-inventory.a1",
|
|
4
|
+
"title": "Altium Toolkit Parameter Record Inventory A1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": ["schema", "summary", "records"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {
|
|
10
|
+
"const": "altium-toolkit.parameter-record-inventory.a1"
|
|
11
|
+
},
|
|
12
|
+
"summary": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": true
|
|
15
|
+
},
|
|
16
|
+
"records": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": [
|
|
21
|
+
"fieldCount",
|
|
22
|
+
"emptyEntryCount",
|
|
23
|
+
"duplicateFields",
|
|
24
|
+
"fields"
|
|
25
|
+
],
|
|
26
|
+
"properties": {
|
|
27
|
+
"sourceStream": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"recordIndex": {
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
"duplicateFields": {
|
|
34
|
+
"type": "array"
|
|
35
|
+
},
|
|
36
|
+
"fields": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"required": [
|
|
41
|
+
"rawKey",
|
|
42
|
+
"key",
|
|
43
|
+
"value",
|
|
44
|
+
"delimiter",
|
|
45
|
+
"level",
|
|
46
|
+
"occurrence",
|
|
47
|
+
"isUtf8"
|
|
48
|
+
],
|
|
49
|
+
"properties": {
|
|
50
|
+
"rawKey": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"key": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"value": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"delimiter": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"level": {
|
|
63
|
+
"type": "number"
|
|
64
|
+
},
|
|
65
|
+
"occurrence": {
|
|
66
|
+
"type": "number"
|
|
67
|
+
},
|
|
68
|
+
"isUtf8": {
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
"typedValue": {
|
|
72
|
+
"type": ["object", "null"],
|
|
73
|
+
"additionalProperties": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"additionalProperties": true
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"additionalProperties": true
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "altium-toolkit.parser-diagnostics.a1",
|
|
4
|
+
"title": "Altium Toolkit Parser Diagnostics A1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": ["schema", "summary", "diagnostics"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {
|
|
10
|
+
"const": "altium-toolkit.parser-diagnostics.a1"
|
|
11
|
+
},
|
|
12
|
+
"summary": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": true
|
|
15
|
+
},
|
|
16
|
+
"diagnostics": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["code", "severity", "message"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"code": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"severity": {
|
|
26
|
+
"enum": ["info", "warning", "error"]
|
|
27
|
+
},
|
|
28
|
+
"message": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"source": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"sourceStorage": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"sourceStream": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"fileName": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"recordIndex": {
|
|
44
|
+
"type": ["number", "string"]
|
|
45
|
+
},
|
|
46
|
+
"recordType": {
|
|
47
|
+
"type": ["number", "string"]
|
|
48
|
+
},
|
|
49
|
+
"fieldName": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"contextKey": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"errorKind": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"additionalProperties": true
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "altium-toolkit.parser-value-verification.a1",
|
|
4
|
+
"title": "Altium Toolkit Parser Value Verification A1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": ["schema", "summary", "cases", "failures"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {
|
|
10
|
+
"const": "altium-toolkit.parser-value-verification.a1"
|
|
11
|
+
},
|
|
12
|
+
"summary": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": true
|
|
15
|
+
},
|
|
16
|
+
"cases": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": [
|
|
21
|
+
"key",
|
|
22
|
+
"status",
|
|
23
|
+
"assertionCount",
|
|
24
|
+
"passedCount",
|
|
25
|
+
"failedCount",
|
|
26
|
+
"failures"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"key": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"source": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"status": {
|
|
36
|
+
"enum": ["passed", "failed"]
|
|
37
|
+
},
|
|
38
|
+
"failures": {
|
|
39
|
+
"type": "array"
|
|
40
|
+
},
|
|
41
|
+
"assertions": {
|
|
42
|
+
"type": "array"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"additionalProperties": true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"failures": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": ["caseKey", "path", "status", "message"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"caseKey": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"source": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"path": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"status": {
|
|
64
|
+
"enum": ["missing", "mismatch"]
|
|
65
|
+
},
|
|
66
|
+
"message": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": true
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "altium-toolkit.pcb.class-report.a1",
|
|
4
|
+
"title": "Altium Toolkit PCB Class Report A1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": ["schema", "summary", "byKind", "classes", "issues"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {
|
|
10
|
+
"const": "altium-toolkit.pcb.class-report.a1"
|
|
11
|
+
},
|
|
12
|
+
"summary": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": true
|
|
15
|
+
},
|
|
16
|
+
"byKind": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"classes": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"$ref": "#/$defs/classRow"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"issues": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"$ref": "#/$defs/issue"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"$defs": {
|
|
37
|
+
"classRow": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": true,
|
|
40
|
+
"required": ["classIndex", "kindName", "memberCount"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"classIndex": {
|
|
43
|
+
"type": "number"
|
|
44
|
+
},
|
|
45
|
+
"name": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"kindName": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"enabled": {
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
},
|
|
54
|
+
"memberCount": {
|
|
55
|
+
"type": "number"
|
|
56
|
+
},
|
|
57
|
+
"members": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"issue": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": true,
|
|
68
|
+
"required": ["code", "severity"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"code": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"severity": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "altium-toolkit.pcb.inspection.a1",
|
|
4
|
+
"title": "Altium Toolkit PCB Inspection A1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"units",
|
|
10
|
+
"summary",
|
|
11
|
+
"board",
|
|
12
|
+
"statistics",
|
|
13
|
+
"primitives",
|
|
14
|
+
"rules",
|
|
15
|
+
"diagnostics",
|
|
16
|
+
"netMembership",
|
|
17
|
+
"classes",
|
|
18
|
+
"routeAnalysis"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schema": {
|
|
22
|
+
"const": "altium-toolkit.pcb.inspection.a1"
|
|
23
|
+
},
|
|
24
|
+
"units": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": true
|
|
27
|
+
},
|
|
28
|
+
"summary": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": true
|
|
31
|
+
},
|
|
32
|
+
"board": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": true
|
|
35
|
+
},
|
|
36
|
+
"statistics": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": true
|
|
39
|
+
},
|
|
40
|
+
"primitives": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": true
|
|
43
|
+
},
|
|
44
|
+
"rules": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": true
|
|
47
|
+
},
|
|
48
|
+
"diagnostics": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": true
|
|
51
|
+
},
|
|
52
|
+
"netMembership": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": true
|
|
55
|
+
},
|
|
56
|
+
"classes": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": true
|
|
59
|
+
},
|
|
60
|
+
"routeAnalysis": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": true
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "altium-toolkit.pcb.net-membership.a1",
|
|
4
|
+
"title": "Altium Toolkit PCB Net Membership A1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"summary",
|
|
10
|
+
"byNet",
|
|
11
|
+
"emptyDeclaredNets",
|
|
12
|
+
"undeclaredNets",
|
|
13
|
+
"possibleUnroutedNets",
|
|
14
|
+
"unownedPrimitives"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schema": {
|
|
18
|
+
"const": "altium-toolkit.pcb.net-membership.a1"
|
|
19
|
+
},
|
|
20
|
+
"summary": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": true
|
|
23
|
+
},
|
|
24
|
+
"byNet": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"$ref": "#/$defs/netRow"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"emptyDeclaredNets": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"undeclaredNets": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"possibleUnroutedNets": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"unownedPrimitives": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"$ref": "#/$defs/primitiveRow"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"$defs": {
|
|
56
|
+
"netRow": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": true,
|
|
59
|
+
"required": ["netName", "declared", "totalPrimitiveCount"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"netName": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"declared": {
|
|
65
|
+
"type": "boolean"
|
|
66
|
+
},
|
|
67
|
+
"totalPrimitiveCount": {
|
|
68
|
+
"type": "number"
|
|
69
|
+
},
|
|
70
|
+
"layers": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "number"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"primitiveRow": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": true,
|
|
81
|
+
"required": ["primitiveKey", "family", "index"],
|
|
82
|
+
"properties": {
|
|
83
|
+
"primitiveKey": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"family": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"index": {
|
|
90
|
+
"type": "number"
|
|
91
|
+
},
|
|
92
|
+
"layerId": {
|
|
93
|
+
"type": "number"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "altium-toolkit.project.hierarchy.a1",
|
|
4
|
+
"title": "Altium Toolkit Project Hierarchy A1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"summary",
|
|
10
|
+
"hierarchyMode",
|
|
11
|
+
"sheets",
|
|
12
|
+
"links",
|
|
13
|
+
"roots",
|
|
14
|
+
"diagnostics"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schema": {
|
|
18
|
+
"const": "altium-toolkit.project.hierarchy.a1"
|
|
19
|
+
},
|
|
20
|
+
"summary": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": true
|
|
23
|
+
},
|
|
24
|
+
"hierarchyMode": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": true
|
|
27
|
+
},
|
|
28
|
+
"sheets": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"links": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": [
|
|
40
|
+
"parentSheetFileName",
|
|
41
|
+
"childSheetFileName",
|
|
42
|
+
"status"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"parentSheetFileName": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"childSheetFileName": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"status": {
|
|
52
|
+
"enum": ["resolved", "missing", "cycle", "repeated"]
|
|
53
|
+
},
|
|
54
|
+
"sheetEntryNames": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"roots": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": true
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"diagnostics": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": true
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|