{
  "$id": "https://json.schemastore.org/warp-workflows.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "url": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "pattern": "^https?://.+"
        },
        {
          "type": "null"
        }
      ]
    },
    "nullable-string": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "title": "workflow",
  "description": "A workflow",
  "type": "object",
  "required": ["name", "command"],
  "properties": {
    "name": {
      "title": "name",
      "description": "A name of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#name",
      "type": "string",
      "minLength": 1,
      "examples": ["Root your emulator"]
    },
    "command": {
      "title": "command",
      "description": "A command of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#command",
      "type": "string",
      "minLength": 1,
      "examples": ["adb root"]
    },
    "tags": {
      "title": "tags",
      "description": "Tags of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#tags",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "description": "A tag of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#tags",
        "type": "string",
        "minLength": 1,
        "examples": ["android"]
      }
    },
    "description": {
      "title": "description",
      "description": "A description of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#description",
      "$ref": "#/definitions/nullable-string"
    },
    "source_url": {
      "title": "source url",
      "description": "A source url of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#source_url",
      "$ref": "#/definitions/url"
    },
    "author": {
      "title": "author",
      "description": "An author of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#author",
      "$ref": "#/definitions/nullable-string"
    },
    "author_url": {
      "title": "author url",
      "description": "An author url of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#author_url",
      "$ref": "#/definitions/url"
    },
    "shells": {
      "title": "shells",
      "description": "Shells where the current workflow is valid\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#shells",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "description": "A shell where the current workflow is valid\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#shells",
        "type": "string",
        "enum": ["Zsh", "zsh", "Bash", "bash", "Fish", "fish"]
      }
    },
    "arguments": {
      "title": "arguments",
      "description": "Arguments of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#arguments",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "description": "An argument of the current workflow\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#arguments",
        "type": "object",
        "required": ["name"],
        "properties": {
          "name": {
            "title": "name",
            "description": "A name of the current argument\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#argumentsname",
            "type": "string",
            "minLength": 1
          },
          "description": {
            "title": "description",
            "description": "A description of the current argument\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#argumentsdescription",
            "$ref": "#/definitions/nullable-string"
          },
          "default_value": {
            "title": "default value",
            "description": "A default value of the current argument\nhttps://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#argumentsdefault_value",
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
