| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723 |
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "https://local.invalid/schemas/board_viewer_annotations.schema.json",
- "title": "Board viewer curated annotations",
- "type": "object",
- "additionalProperties": false,
- "required": [
- "schema",
- "board_id",
- "connector_profiles",
- "touchpoints",
- "interfaces",
- "photo_overlay"
- ],
- "properties": {
- "schema": {
- "const": "board-viewer-annotations-v1"
- },
- "board_id": {
- "type": "string",
- "minLength": 1
- },
- "io_evidence_policy": {
- "$ref": "#/$defs/ioEvidencePolicy"
- },
- "historical_note": {
- "type": "string",
- "minLength": 1
- },
- "connector_profiles": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/connectorProfile"
- }
- },
- "annotation_templates": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/touchpointAnnotation"
- }
- },
- "template_instances": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/templateInstance"
- }
- },
- "touchpoints": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/touchpointAnnotation"
- }
- },
- "interfaces": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/interface"
- }
- },
- "photo_overlay": {
- "oneOf": [
- {
- "type": "null"
- },
- {
- "$ref": "#/$defs/photoOverlay"
- }
- ]
- },
- "evidence_conflicts": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true,
- "required": [
- "id",
- "subject_reference",
- "status",
- "kind",
- "primary_source",
- "summary",
- "claims"
- ],
- "properties": {
- "id": {
- "type": "string",
- "minLength": 1
- },
- "subject_reference": {
- "type": "string",
- "pattern": "^R[0-9]+$"
- },
- "status": {
- "enum": [
- "unresolved",
- "resolved",
- "info"
- ]
- },
- "kind": {
- "type": "string",
- "minLength": 1
- },
- "primary_source": {
- "type": "string",
- "minLength": 1
- },
- "summary": {
- "type": "string",
- "minLength": 1
- },
- "claims": {
- "type": "array",
- "minItems": 1
- }
- }
- }
- },
- "resistor_links": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "source_pin_id",
- "resistor_reference",
- "pad_number",
- "claimed_net",
- "evidence_source"
- ],
- "properties": {
- "source_pin_id": {
- "type": "string"
- },
- "resistor_reference": {
- "type": "string",
- "pattern": "^R[0-9]+$"
- },
- "pad_number": {
- "type": [
- "string",
- "integer"
- ]
- },
- "claimed_net": {
- "type": "string",
- "minLength": 1
- },
- "evidence_source": {
- "type": "string",
- "minLength": 1
- },
- "note": {
- "type": "string"
- }
- }
- }
- }
- },
- "$defs": {
- "evidenceTier": {
- "enum": [
- "board_database",
- "cross_verified",
- "name_inferred",
- "unknown"
- ]
- },
- "ioEvidenceGradePhysical": {
- "enum": [
- "confirmed_by_brd",
- "inferred",
- "blocked",
- "not_applicable",
- "unknown"
- ]
- },
- "ioEvidenceGradePolarity": {
- "enum": [
- "confirmed_by_electrical_staff",
- "inferred",
- "blocked",
- "not_applicable",
- "unknown"
- ]
- },
- "ioEvidenceGradeMeasurement": {
- "enum": [
- "not_run",
- "pass",
- "fail",
- "blocked",
- "not_applicable",
- "unknown"
- ]
- },
- "ioEvidenceGrades": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "physical_path",
- "product_polarity",
- "hardware_measurement"
- ],
- "properties": {
- "physical_path": {
- "$ref": "#/$defs/ioEvidenceGradePhysical"
- },
- "product_polarity": {
- "$ref": "#/$defs/ioEvidenceGradePolarity"
- },
- "hardware_measurement": {
- "$ref": "#/$defs/ioEvidenceGradeMeasurement"
- }
- }
- },
- "ioEvidencePolicy": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "authoritative_order",
- "physical_path",
- "product_polarity",
- "hardware_measurement",
- "matrix_doc"
- ],
- "properties": {
- "authoritative_order": {
- "type": "array",
- "minItems": 3,
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "physical_path": {
- "type": "string",
- "minLength": 1
- },
- "product_polarity": {
- "type": "string",
- "minLength": 1
- },
- "hardware_measurement": {
- "type": "string",
- "minLength": 1
- },
- "matrix_doc": {
- "type": "string",
- "minLength": 1
- },
- "historical_schematic_side_evidence": {
- "type": "string",
- "minLength": 1
- },
- "v1_2_schematic_pdf": {
- "type": "string",
- "minLength": 1
- },
- "must_not_override_connectors": {
- "type": "array",
- "items": {
- "type": "string",
- "minLength": 1
- }
- }
- }
- },
- "touchpointAnnotation": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "summary",
- "pins"
- ],
- "properties": {
- "summary": {
- "type": "string",
- "minLength": 1
- },
- "pins": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/pinAnnotation"
- }
- }
- }
- },
- "templateInstance": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "template",
- "variables"
- ],
- "properties": {
- "template": {
- "type": "string",
- "minLength": 1
- },
- "variables": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- }
- }
- },
- "connectorProfile": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "references",
- "contact_pins",
- "shield_pads",
- "evidence_tier",
- "sources"
- ],
- "properties": {
- "component_value": {
- "type": "string"
- },
- "references": {
- "type": "array",
- "minItems": 1,
- "uniqueItems": true,
- "items": {
- "type": "string",
- "pattern": "^(CON|J|PL)[0-9]+$"
- }
- },
- "contact_pins": {
- "type": "array",
- "minItems": 1,
- "uniqueItems": true,
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "shield_pads": {
- "type": "array",
- "uniqueItems": true,
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "evidence_tier": {
- "$ref": "#/$defs/evidenceTier"
- },
- "sources": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- }
- }
- },
- "pinAnnotation": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "summary",
- "path",
- "evidence_tier",
- "sources"
- ],
- "properties": {
- "summary": {
- "type": "string",
- "minLength": 1
- },
- "path": {
- "type": "array",
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "evidence_tier": {
- "$ref": "#/$defs/evidenceTier"
- },
- "sources": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "direction": {
- "enum": [
- "input",
- "output",
- "bidirectional",
- "passive",
- "unknown"
- ]
- },
- "external_level": {
- "type": "string",
- "minLength": 1
- },
- "function_category": {
- "type": "string",
- "minLength": 1
- },
- "reserved": {
- "type": "boolean"
- },
- "fixed_load_conflict": {
- "type": "boolean"
- },
- "board_pull": {
- "type": [
- "string",
- "null"
- ]
- },
- "adc_pulltype": {
- "type": [
- "string",
- "null"
- ],
- "pattern": "^[A-Z][A-Z0-9_]*$"
- },
- "active_level": {
- "type": "string",
- "minLength": 1
- },
- "polarity": {
- "type": "string",
- "minLength": 1
- },
- "evidence_grades": {
- "$ref": "#/$defs/ioEvidenceGrades"
- },
- "external_components": {
- "type": "array",
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "fpga": {
- "$ref": "#/$defs/fpgaAnnotation"
- },
- "mcu": {
- "$ref": "#/$defs/mcuAnnotation"
- },
- "programming": {
- "$ref": "#/$defs/programmingAnnotation"
- }
- }
- },
- "fpgaAnnotation": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "ball",
- "board_signal",
- "io_standard",
- "capabilities",
- "evidence_tier",
- "sources"
- ],
- "properties": {
- "ball": {
- "type": "string",
- "minLength": 1
- },
- "board_signal": {
- "type": "string",
- "minLength": 1
- },
- "io_standard": {
- "type": "string",
- "minLength": 1
- },
- "capabilities": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "evidence_tier": {
- "$ref": "#/$defs/evidenceTier"
- },
- "sources": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- }
- }
- },
- "mcuAnnotation": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "device",
- "family",
- "pin",
- "signal",
- "capabilities",
- "evidence_tier",
- "sources"
- ],
- "properties": {
- "device": {
- "type": "string",
- "minLength": 1
- },
- "family": {
- "type": "string",
- "minLength": 1
- },
- "pin": {
- "type": "string",
- "minLength": 1
- },
- "signal": {
- "type": "string",
- "minLength": 1
- },
- "capabilities": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "evidence_tier": {
- "$ref": "#/$defs/evidenceTier"
- },
- "sources": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- }
- }
- },
- "programmingAnnotation": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "evidence_tier",
- "sources"
- ],
- "properties": {
- "status": {
- "enum": [
- "verified_fpga",
- "verified_mcu",
- "board_only",
- "not_programmable",
- "unknown"
- ]
- },
- "conclusion": {
- "type": "string",
- "minLength": 1
- },
- "network_explanation": {
- "type": "string",
- "minLength": 1
- },
- "hdl_guidance": {
- "type": "string",
- "minLength": 1
- },
- "connection_guidance": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "constraints": {
- "type": "array",
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "risks": {
- "type": "array",
- "items": {
- "type": "string",
- "minLength": 1
- }
- },
- "evidence_tier": {
- "$ref": "#/$defs/evidenceTier"
- },
- "sources": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- }
- }
- },
- "interface": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "id",
- "name",
- "touchpoint",
- "pins",
- "external_level",
- "evidence_tier",
- "sources"
- ],
- "properties": {
- "id": {
- "type": "string",
- "pattern": "^[a-z0-9-]+$"
- },
- "name": {
- "type": "string",
- "minLength": 1
- },
- "touchpoint": {
- "type": "string",
- "pattern": "^(CON|J|PL|TP)[0-9]+$"
- },
- "pins": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string"
- }
- },
- "external_level": {
- "type": "string",
- "minLength": 1
- },
- "evidence_tier": {
- "$ref": "#/$defs/evidenceTier"
- },
- "sources": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "minLength": 1
- }
- }
- }
- },
- "photoOverlay": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "path",
- "sha256",
- "control_points"
- ],
- "properties": {
- "path": {
- "type": "string",
- "minLength": 1
- },
- "sha256": {
- "type": "string",
- "pattern": "^[0-9a-f]{64}$"
- },
- "control_points": {
- "type": "array",
- "minItems": 3,
- "items": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "image",
- "board"
- ],
- "properties": {
- "image": {
- "$ref": "#/$defs/point"
- },
- "board": {
- "$ref": "#/$defs/point"
- }
- }
- }
- }
- }
- },
- "point": {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "x",
- "y"
- ],
- "properties": {
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- }
- }
- }
- }
|