{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nao1215.github.io/jsonize/schemas/systemctl/status.json",
  "title": "systemctl/status",
  "description": "systemctl status of one or more units",
  "x-jsonize": {
    "definition": "systemctl/status",
    "version": 1
  },
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "unit": {
        "type": "object",
        "properties": {
          "marker": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "marker",
          "name",
          "description"
        ]
      },
      "properties": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "value": {
              "type": "string"
            }
          },
          "required": [
            "name",
            "value"
          ]
        }
      }
    },
    "required": [
      "unit",
      "properties"
    ]
  }
}
