{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/runny/latest.json",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/simonwhitaker/runny/main/schema/runny.schema.json",
    "sourceSha256": "1b7aef0c5e1805fa1ab0ea3c4684bf0ac1f0da502923875b5c675aaacbf42f6b",
    "fileMatch": [
      ".runny.yaml",
      ".runny.yml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "$defs": {
    "CommandDef": {
      "type": "object",
      "properties": {
        "argnames": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "type": "string"
        },
        "env": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "if": {
          "type": "string"
        },
        "internal": {
          "type": "boolean"
        },
        "needs": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "run": {
          "type": "string"
        },
        "shell": {
          "type": "string"
        },
        "then": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "additionalProperties": false
    },
    "Config": {
      "type": "object",
      "properties": {
        "commands": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/CommandDef"
          }
        },
        "env": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "shell": {
          "type": "string"
        }
      },
      "required": [
        "commands"
      ],
      "additionalProperties": false
    }
  },
  "$ref": "#/$defs/Config"
}
