{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "tar_extract",
  "description": "Extract files from a tar archive",
  "type": "object",
  "$defs": {
    "arguments": {
      "title": "Arguments",
      "type": "object",
      "description": "No description",
      "properties": {
        "input": {
          "type": "string",
          "format": "path",
          "exists": true,
          "description": "Input file",
          "help_text": "Type: `file`, multiple: `False`, required, direction: `input`, example: `\"input.tar.gz\"`. "
        },
        "output": {
          "type": "string",
          "format": "path",
          "description": "Folder to restore file(s) to.",
          "help_text": "Type: `file`, multiple: `False`, required, default: `\"$id.$key.output\"`, direction: `output`, example: `\"output_folder\"`. ",
          "default": "$id.$key.output"
        },
        "strip_components": {
          "type": "integer",
          "description": "Strip this amount of leading components from file names on extraction",
          "help_text": "Type: `integer`, multiple: `False`, example: `1`. "
        },
        "exclude": {
          "type": "string",
          "description": "Prevents any file or member whose name matches the shell wildcard (pattern) from being extracted.",
          "help_text": "Type: `string`, multiple: `False`, example: `\"docs/figures\"`. "
        }
      }
    },
    "nextflow input-output arguments": {
      "title": "Nextflow input-output arguments",
      "type": "object",
      "description": "Input/output parameters for Nextflow itself. Please note that both publishDir and publish_dir are supported but at least one has to be configured.",
      "properties": {
        "publish_dir": {
          "type": "string",
          "description": "Path to an output directory.",
          "help_text": "Type: `string`, multiple: `False`, required, example: `\"output/\"`. "
        }
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/arguments"
    },
    {
      "$ref": "#/$defs/nextflow input-output arguments"
    }
  ]
}
