{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/warp-workflows-json/latest.json",
  "title": "workflow",
  "description": "A workflow",
  "x-lintel": {
    "source": "https://www.schemastore.org/warp-workflows.json",
    "sourceSha256": "89eb73b9c309b9a218ca4c80b42d60918a3fadc9aa4b306af68e123cef330714",
    "fileMatch": [
      "**/.warp/workflows/*.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "name": {
      "title": "name",
      "description": "A name of the current workflow\n<https://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\n<https://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\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#tags>",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "description": "A tag of the current workflow\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#tags>",
        "type": "string",
        "minLength": 1,
        "examples": [
          "android"
        ]
      }
    },
    "description": {
      "$ref": "#/$defs/nullable-string",
      "title": "description",
      "description": "A description of the current workflow\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#description>"
    },
    "source_url": {
      "$ref": "#/$defs/url",
      "title": "source url",
      "description": "A source url of the current workflow\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#source_url>"
    },
    "author": {
      "$ref": "#/$defs/nullable-string",
      "title": "author",
      "description": "An author of the current workflow\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#author>"
    },
    "author_url": {
      "$ref": "#/$defs/url",
      "title": "author url",
      "description": "An author url of the current workflow\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#author_url>"
    },
    "shells": {
      "title": "shells",
      "description": "Shells where the current workflow is valid\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#shells>",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "description": "A shell where the current workflow is valid\n<https://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\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#arguments>",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "description": "An argument of the current workflow\n<https://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\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#argumentsname>",
            "type": "string",
            "minLength": 1
          },
          "description": {
            "$ref": "#/$defs/nullable-string",
            "title": "description",
            "description": "A description of the current argument\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#argumentsdescription>"
          },
          "default_value": {
            "title": "default value",
            "description": "A default value of the current argument\n<https://github.com/warpdotdev/warp-workflows/blob/main/FORMAT.md#argumentsdefault_value>",
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    }
  },
  "required": [
    "name",
    "command"
  ],
  "additionalProperties": false,
  "$defs": {
    "url": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "pattern": "^https?://.+"
        },
        {
          "type": "null"
        }
      ]
    },
    "nullable-string": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
