{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "altium-toolkit.pcb.svg.semantics.a1",
    "title": "Altium Toolkit PCB SVG Semantics A1",
    "type": "object",
    "additionalProperties": true,
    "required": ["schema", "view", "layers", "elements"],
    "properties": {
        "schema": {
            "const": "altium-toolkit.pcb.svg.semantics.a1"
        },
        "view": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
                "kind": {
                    "type": "string"
                },
                "layerSet": {
                    "type": "object"
                },
                "board": {
                    "type": "object"
                }
            }
        },
        "boardOutline": {
            "type": "object"
        },
        "lookups": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
                "netsByIndex": {
                    "type": "object"
                },
                "netIndexByName": {
                    "type": "object"
                },
                "netClassesByName": {
                    "type": "object"
                },
                "componentsByIndex": {
                    "type": "object"
                },
                "componentIndexByDesignator": {
                    "type": "object"
                },
                "layersByKey": {
                    "type": "object"
                },
                "layerKeyByDisplayName": {
                    "type": "object"
                }
            }
        },
        "layers": {
            "type": "array"
        },
        "elements": {
            "type": "array",
            "items": {
                "type": "object",
                "additionalProperties": true,
                "required": ["elementKey", "primitive"],
                "properties": {
                    "elementKey": {
                        "type": "string"
                    },
                    "primitive": {
                        "type": "string"
                    },
                    "layerKey": {
                        "type": "string"
                    },
                    "net": {
                        "type": "string"
                    },
                    "component": {
                        "type": "string"
                    }
                }
            }
        }
    }
}
