{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nao1215.github.io/jsonize/schemas/systemctl/dependencies.json",
  "title": "systemctl/dependencies",
  "description": "systemctl list-dependencies --plain, the units a unit pulls in",
  "x-jsonize": {
    "definition": "systemctl/dependencies",
    "version": 1
  },
  "type": "array",
  "items": {
    "$ref": "#/$defs/node"
  },
  "$defs": {
    "node": {
      "type": "object",
      "properties": {
        "unit": {
          "type": "string"
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/node"
          }
        }
      },
      "required": [
        "unit",
        "children"
      ]
    }
  }
}
