{
  "config": {
    "type": "object",
    "properties": {
      "command": {
        "type": "string",
        "minLength": 1,
        "description": "The shell command of the job."
      },
      "exec": {
        "type": "boolean",
        "description": "If activated and if the crontab was modified, then command will be executed just after the crontab modification."
      },
      "match": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "instanceof": "RegExp"
          }
        ],
        "description": "The cron entry to match, a string will be converted to a regexp and an\nundefined or null value will match the exact command."
      },
      "user": {
        "type": "string",
        "description": "The user of the crontab. The SSH user by default."
      },
      "when": {
        "type": "string",
        "pattern": "^(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\\d+(ns|us|µs|ms|s|m|h))+)|((((\\d+,)+\\d+|(\\d+(\\/|-)\\d+)|\\d+|\\*) ?){5,7})$",
        "description": "Cron-styled time string. Defines the frequency of the cron job."
      }
    },
    "required": [
      "command",
      "when"
    ]
  }
}
