Loading files
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://akcli/schemas/ops.schema.json",
"title": "AkcliOpList",
"type": "object",
"required": ["protocol_version", "target_format", "ops"],
"properties": {
"protocol_version": { "const": 1 },
"target_format": { "enum": ["kicad", "altium"] },
"target_file": { "type": "string" },
"run_id": { "type": "string" },
"ops": { "type": "array", "items": { "$ref": "#/$defs/op" } }
},
"$defs": {
"point": { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2 },
"pinref": { "type": "string", "pattern": "^[^.]+\\.[^.]+$" },
"midref": {
"type": "string",
"description": "mid(REF.PIN,REF.PIN): midpoint of two axis-aligned pins, snapped to the 50-mil grid along the wire axis.",
"pattern": "^mid\\(\\s*[^,()\\s]+\\.[^,()\\s]+\\s*,\\s*[^,()\\s]+\\.[^,()\\s]+\\s*\\)$"
},
"endpoint": {
"oneOf": [
{ "$ref": "#/$defs/point" },
{ "$ref": "#/$defs/pinref" }
]
},
"anchor": {
"oneOf": [
{ "$ref": "#/$defs/point" },
{ "$ref": "#/$defs/pinref" },
{ "$ref": "#/$defs/midref" }
]
},
"rotation": { "enum": [0, 90, 180, 270] },
"mirror": { "enum": ["none", "x", "y"] },
"scope": { "enum": ["local", "global", "hierarchical"] },
"strpair": { "type": "array", "items": { "type": "string" }, "minItems": 2, "maxItems": 2 },
"strtriple": { "type": "array", "items": { "type": "string" }, "minItems": 3, "maxItems": 3 },
"op": {
"type": "object",
"required": ["op"],
"oneOf": [
{
"properties": {
"op": { "const": "place_component" },
"lib_id": { "type": "string" },
"designator": { "type": "string" },
"x_mil": { "type": "number" },
"y_mil": { "type": "number" },
"rotation": { "$ref": "#/$defs/rotation" },
"mirror": { "$ref": "#/$defs/mirror" },
"unit": { "type": "integer", "minimum": 1,
"description": "Unit of a multi-unit part to place (default 1); each unit is its own instance sharing the designator." },
"value": { "type": "string" },
"footprint": { "type": "string" },
"symbol_source": { "type": "string" }
},
"required": ["op", "lib_id", "designator", "x_mil", "y_mil"]
},
{
"properties": {
"op": { "const": "delete_component" },
"designator": { "type": "string" },
"cascade": { "type": "boolean",
"description": "Also delete wires ending on a deleted pin plus labels/no_connects/junctions anchored there (cascaded uuids are reported)." }
},
"required": ["op", "designator"]
},
{
"properties": {
"op": { "const": "delete_object" },
"uuid": { "type": "string" },
"match": {
"type": "object",
"description": "Selector alternative to uuid; must match exactly one object (0 = replay-safe note, >1 = error listing candidates).",
"properties": {
"kind": { "enum": ["wire", "bus", "label", "global_label", "hierarchical_label", "junction", "no_connect", "text", "bus_entry"] },
"name": { "type": "string" },
"at": { "$ref": "#/$defs/point" }
},
"required": ["kind"],
"additionalProperties": false
}
},
"required": ["op"],
"oneOf": [
{ "required": ["uuid"] },
{ "required": ["match"] }
]
},
{
"properties": {
"op": { "const": "move_component" },
"designator": { "type": "string" },
"x_mil": { "type": "number" },
"y_mil": { "type": "number" },
"unit": { "type": "integer", "minimum": 1 }
},
"required": ["op", "designator", "x_mil", "y_mil"]
},
{
"properties": {
"op": { "const": "set_component_transform" },
"designator": { "type": "string" },
"rotation": { "$ref": "#/$defs/rotation" },
"mirror": { "$ref": "#/$defs/mirror" }
},
"required": ["op", "designator"]
},
{
"properties": {
"op": { "const": "set_component_parameters" },
"designator": { "type": "string" },
"reference": { "type": "string" },
"value": { "type": "string" },
"footprint": { "type": "string" },
"parameters": { "type": "object" }
},
"required": ["op", "designator"]
},
{
"properties": {
"op": { "const": "add_wire" },
"vertices": { "type": "array", "items": { "$ref": "#/$defs/endpoint" }, "minItems": 2 }
},
"required": ["op", "vertices"]
},
{
"properties": {
"op": { "const": "add_junction" },
"at": { "$ref": "#/$defs/point" }
},
"required": ["op", "at"]
},
{
"properties": {
"op": { "const": "add_no_connect" },
"pin": { "$ref": "#/$defs/endpoint" }
},
"required": ["op", "pin"]
},
{
"properties": {
"op": { "const": "add_net_label" },
"name": { "type": "string" },
"at": { "$ref": "#/$defs/anchor" },
"scope": { "$ref": "#/$defs/scope" },
"orientation": { "$ref": "#/$defs/rotation" }
},
"required": ["op", "name", "at"]
},
{
"properties": {
"op": { "const": "place_power_port" },
"lib_id": { "type": "string" },
"net_name": { "type": "string" },
"at": { "$ref": "#/$defs/anchor" },
"rotation": { "$ref": "#/$defs/rotation" }
},
"required": ["op", "lib_id", "net_name", "at"]
},
{
"properties": {
"op": { "const": "place_gnd" },
"lib_id": { "type": "string" },
"net_name": { "type": "string" },
"at": { "$ref": "#/$defs/anchor" },
"rotation": { "$ref": "#/$defs/rotation" }
},
"required": ["op", "at"]
},
{
"properties": {
"op": { "const": "place_vcc" },
"lib_id": { "type": "string" },
"net_name": { "type": "string" },
"at": { "$ref": "#/$defs/anchor" },
"rotation": { "$ref": "#/$defs/rotation" }
},
"required": ["op", "at"]
},
{
"properties": {
"op": { "const": "rename_net" },
"from": { "type": "string" },
"to": { "type": "string" },
"scope": { "$ref": "#/$defs/scope",
"description": "Restrict the rewrite to one label kind; omitted = all label kinds + power-port net Values." }
},
"required": ["op", "from", "to"]
},
{
"properties": {
"op": { "const": "add_bus" },
"vertices": { "type": "array", "items": { "$ref": "#/$defs/point" }, "minItems": 2 }
},
"required": ["op", "vertices"]
},
{
"properties": {
"op": { "const": "add_bus_entry" },
"at": { "$ref": "#/$defs/point" },
"size": { "$ref": "#/$defs/point" }
},
"required": ["op", "at"]
},
{
"properties": {
"op": { "const": "add_text" },
"text": { "type": "string" },
"at": { "$ref": "#/$defs/point" },
"angle": { "type": "number" }
},
"required": ["op", "text", "at"]
},
{
"properties": {
"op": { "const": "add_sheet" },
"name": { "type": "string", "description": "Sheetname property value." },
"file": { "type": "string", "description": "Sheetfile property value; the referenced child .kicad_sch is NOT created by this op." },
"at": { "$ref": "#/$defs/point", "description": "Top-left corner [x, y] mil of the sheet box." },
"size": { "$ref": "#/$defs/point", "description": "[width, height] mil of the sheet box." },
"pins": {
"type": "array",
"description": "Sheet pins on the box edges; each pin's edge coordinate is at + offset_mil along its side, wire endpoints attach to that coordinate.",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"type": { "enum": ["input", "output", "bidirectional", "tri_state", "passive"] },
"side": { "enum": ["left", "right", "top", "bottom"] },
"offset_mil": { "type": "number" }
},
"required": ["name", "type", "side", "offset_mil"],
"additionalProperties": false
}
}
},
"required": ["op", "name", "file", "at", "size"],
"description": "Emit a hierarchical (sheet ...) node with Sheetname/Sheetfile, sheet pins at computed edge coordinates and the (instances) block; the child file is authored separately."
},
{
"properties": {
"op": { "const": "place_divider" },
"x_mil": { "type": "number" },
"y_mil": { "type": "number" },
"top_net": { "type": "string" },
"mid_net": { "type": "string" },
"bottom_net": { "type": "string" },
"designators": { "$ref": "#/$defs/strpair" },
"values": { "$ref": "#/$defs/strpair" },
"spacing_mil": { "type": "number" },
"lib_id": { "type": "string" }
},
"required": ["op", "x_mil", "y_mil", "top_net", "mid_net", "bottom_net"]
},
{
"properties": {
"op": { "const": "place_decoupling" },
"x_mil": { "type": "number" },
"y_mil": { "type": "number" },
"power_net": { "type": "string" },
"designator": { "type": "string" },
"value": { "type": "string" },
"gnd_net": { "type": "string" },
"lib_id": { "type": "string" }
},
"required": ["op", "x_mil", "y_mil", "power_net"]
},
{
"properties": {
"op": { "const": "place_pullup" },
"x_mil": { "type": "number" },
"y_mil": { "type": "number" },
"net": { "type": "string" },
"rail_net": { "type": "string" },
"designator": { "type": "string" },
"value": { "type": "string" },
"lib_id": { "type": "string" }
},
"required": ["op", "x_mil", "y_mil", "net", "rail_net"]
},
{
"properties": {
"op": { "const": "place_led_indicator" },
"x_mil": { "type": "number" },
"y_mil": { "type": "number" },
"net": { "type": "string" },
"designators": { "$ref": "#/$defs/strpair" },
"r_value": { "type": "string" },
"gnd_net": { "type": "string" },
"mid_net": { "type": "string" },
"spacing_mil": { "type": "number" }
},
"required": ["op", "x_mil", "y_mil", "net"]
},
{
"properties": {
"op": { "const": "place_rc_filter" },
"x_mil": { "type": "number" },
"y_mil": { "type": "number" },
"in_net": { "type": "string" },
"out_net": { "type": "string" },
"designators": { "$ref": "#/$defs/strpair" },
"r_value": { "type": "string" },
"c_value": { "type": "string" },
"gnd_net": { "type": "string" },
"spacing_mil": { "type": "number" }
},
"required": ["op", "x_mil", "y_mil", "in_net", "out_net"]
},
{
"properties": {
"op": { "const": "place_crystal" },
"x_mil": { "type": "number" },
"y_mil": { "type": "number" },
"in_net": { "type": "string" },
"out_net": { "type": "string" },
"designators": { "$ref": "#/$defs/strtriple" },
"value": { "type": "string" },
"load_c": { "type": "string" },
"gnd_net": { "type": "string" },
"spacing_mil": { "type": "number" }
},
"required": ["op", "x_mil", "y_mil", "in_net", "out_net"]
},
{
"properties": {
"op": { "const": "connect_and_label" },
"from": { "$ref": "#/$defs/endpoint" },
"to": { "$ref": "#/$defs/endpoint" },
"net": { "type": "string" },
"orientation": { "$ref": "#/$defs/rotation" },
"scope": { "$ref": "#/$defs/scope" }
},
"required": ["op", "from", "to", "net"],
"description": "Macro: pin-to-pin wire + ONE net label mid-wire (the fix for facing-pin label collisions)."
},
{
"properties": {
"op": { "const": "place_pwr_flag" },
"at": { "$ref": "#/$defs/anchor" },
"rotation": { "$ref": "#/$defs/rotation" }
},
"required": ["op", "at"],
"description": "Macro: power:PWR_FLAG placed MID-WIRE (on-pin placement overlaps symbol bodies); default rotation 90 turns the flag body off the wire axis."
},
{
"properties": {
"op": { "const": "terminate_unused_unit" },
"designator": { "type": "string" },
"lib_id": { "type": "string" },
"unit": { "type": "integer", "minimum": 1 },
"at": { "$ref": "#/$defs/point" },
"in_plus": { "type": "string" },
"in_minus": { "type": "string" },
"out": { "type": "string" },
"vcc": { "type": "string" },
"gnd": { "type": "string" }
},
"required": ["op", "designator", "lib_id", "unit", "at", "in_plus", "in_minus", "out"],
"description": "Macro: place an unused op-amp/comparator unit and terminate it (gnd on in_plus, vcc on in_minus, no-connect on out)."
}
]
}
}
}
ecdbde7d0This file is pinned to the selected release. Download the original to open it in your design tool.