{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "mermaid",
  "description": "Generates a network from mermaid code.\n",
  "type": "object",
  "$defs": {
    "arguments": {
      "title": "Arguments",
      "type": "object",
      "description": "No description",
      "properties": {
        "input": {
          "type": "string",
          "format": "path",
          "exists": true,
          "description": "Input directory",
          "help_text": "Type: `file`, multiple: `False`, required, direction: `input`. "
        },
        "output": {
          "type": "string",
          "format": "path",
          "description": "Generated network as output.",
          "help_text": "Type: `file`, multiple: `False`, required, default: `\"$id.$key.output.png\"`, direction: `output`, example: `\"output.png\"`. ",
          "default": "$id.$key.output.png"
        },
        "output_format": {
          "type": "string",
          "description": "Output format for the generated image",
          "help_text": "Type: `string`, multiple: `False`, choices: ``svg`, `png`, `pdf``. ",
          "enum": [
            "svg",
            "png",
            "pdf"
          ]
        },
        "width": {
          "type": "integer",
          "description": "Width of the page",
          "help_text": "Type: `integer`, multiple: `False`, default: `800`. ",
          "default": 800
        },
        "height": {
          "type": "integer",
          "description": "Height of the page",
          "help_text": "Type: `integer`, multiple: `False`, default: `600`. ",
          "default": 600
        },
        "background_color": {
          "type": "string",
          "description": "Background color for pngs/svgs (not pdfs)",
          "help_text": "Type: `string`, multiple: `False`, default: `\"white\"`, example: `\"#F0F0F0\"`. ",
          "default": "white"
        }
      }
    },
    "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"
    }
  ]
}
