{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://local.invalid/schemas/board_viewer_build_info.schema.json", "title": "Board viewer generated asset manifest", "type": "object", "additionalProperties": false, "required": [ "schema", "generated_at", "generator_version", "toolchain", "sources", "assets", "verification", "counts" ], "properties": { "schema": { "const": "board-viewer-build-info-v1" }, "generated_at": { "type": "string", "format": "date-time" }, "generator_version": { "type": "string", "minLength": 1 }, "toolchain": { "type": "object", "additionalProperties": false, "required": [ "python", "kicad" ], "properties": { "python": { "type": "string", "minLength": 1 }, "kicad": { "type": "string", "minLength": 1 } } }, "sources": { "type": "object", "minProperties": 3, "additionalProperties": { "$ref": "#/$defs/file" } }, "assets": { "type": "object", "minProperties": 1, "propertyNames": { "pattern": "^[^/\\\\]+$" }, "additionalProperties": { "$ref": "#/$defs/fileDigest" } }, "verification": { "type": "object", "additionalProperties": false, "required": [ "ipcd356" ], "properties": { "ipcd356": { "type": "object", "additionalProperties": false, "required": [ "numbered_pads", "matched_pads", "record_types", "tolerance_mm" ], "properties": { "numbered_pads": { "type": "integer", "minimum": 0 }, "matched_pads": { "type": "integer", "minimum": 0 }, "record_types": { "type": "object", "additionalProperties": false, "required": [ "317", "327" ], "properties": { "317": { "type": "integer", "minimum": 0 }, "327": { "type": "integer", "minimum": 0 } } }, "tolerance_mm": { "type": "number", "exclusiveMinimum": 0 } } }, "side_views": { "type": "object", "additionalProperties": false, "required": [ "front_layers", "back_layers", "back_mirror_axis", "back_svg_export_mirrored", "convention" ], "properties": { "front_layers": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 }, "back_layers": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 }, "back_mirror_axis": { "const": "y" }, "back_svg_export_mirrored": { "type": "boolean" }, "convention": { "type": "string", "minLength": 1 } } } } }, "counts": { "type": "object", "additionalProperties": false, "required": [ "footprints", "touchpoints", "pads", "resistors", "resistor_pads" ], "properties": { "footprints": { "type": "integer", "minimum": 0 }, "touchpoints": { "type": "integer", "minimum": 0 }, "pads": { "type": "integer", "minimum": 0 }, "resistors": { "type": "integer", "minimum": 0 }, "resistor_pads": { "type": "integer", "minimum": 0 }, "resistor_electrical_pads": { "type": "integer", "minimum": 0 } } } }, "$defs": { "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" }, "file": { "type": "object", "additionalProperties": false, "required": [ "path", "sha256" ], "properties": { "path": { "type": "string", "minLength": 1 }, "sha256": { "$ref": "#/$defs/sha256" } } }, "fileDigest": { "type": "object", "additionalProperties": false, "required": [ "sha256", "bytes" ], "properties": { "sha256": { "$ref": "#/$defs/sha256" }, "bytes": { "type": "integer", "minimum": 0 } } } } }