| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- {
- "$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}
- }
- }
- }
- },
- "counts": {
- "type": "object",
- "additionalProperties": false,
- "required": ["footprints", "touchpoints", "pads"],
- "properties": {
- "footprints": {"type": "integer", "minimum": 0},
- "touchpoints": {"type": "integer", "minimum": 0},
- "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}
- }
- }
- }
- }
|