| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- {
- "$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
- }
- }
- }
- }
- }
|