{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/k9s-plugins-yaml/latest.json",
  "title": "K9s plugins schema",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/derailed/k9s/master/internal/config/json/schemas/plugins.json",
    "sourceSha256": "5c22bf8f2186a4577555f7357cf5fa496422cf68c21398c2b460b925bed7c031",
    "fileMatch": [
      "**/k9s/plugins.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "plugins": {
      "type": "object",
      "required": [],
      "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"
              ]
            }
          },
          "inputs": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "string",
                    "number",
                    "bool",
                    "dropdown"
                  ]
                },
                "required": {
                  "type": "boolean"
                },
                "default": {
                  "type": [
                    "string",
                    "number",
                    "boolean"
                  ]
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "name",
                "type"
              ],
              "if": {
                "required": [
                  "default"
                ]
              },
              "then": {
                "properties": {
                  "required": {
                    "const": true
                  }
                },
                "required": [
                  "required"
                ],
                "type": "object"
              }
            }
          }
        },
        "required": [
          "shortCut",
          "description",
          "scopes",
          "command"
        ],
        "type": "object"
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "plugins"
  ]
}
