{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "K9s plugins schema",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "plugins": {
      "type": "object",
      "additionalProperties": {
        "properties": {
          "shortCut": { "type": "string" },
          "override": { "type": "boolean" },
          "description": { "type": "string" },
          "confirm": { "type": "boolean" },
          "dangerous": { "type": "boolean" },
          "scopes": {
            "type": "array",
            "items": { "type": "string" }
          },
          "command": { "type": "string" },
          "background": { "type": "boolean" },
          "overwriteOutput": { "type": "boolean" },
          "args": {
            "type": "array",
            "items": { "type": ["string", "number"] }
          }
        },
        "required": ["shortCut", "description", "scopes", "command"]
      },
      "required": []
    }
  },
  "required": ["plugins"]
}
