{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "backend": {
      "type": "object",
      "properties": {
        "packages": {
          "anyOf": [
            {
              "type": "string",
              "const": "all"
            },
            {
              "type": "object",
              "properties": {
                "include": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "exclude": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          ],
          "description": "Used by the feature discovery service"
        },
        "startup": {
          "type": "object",
          "properties": {
            "default": {
              "type": "object",
              "properties": {
                "onPluginBootFailure": {
                  "type": "string",
                  "enum": [
                    "continue",
                    "abort"
                  ],
                  "description": "The default value for `onPluginBootFailure` if not specified for a particular plugin. This defaults to 'abort', which means `onPluginBootFailure: continue` must be specified for backend startup to continue on plugin boot failure. This can also be set to 'continue', which flips the logic for individual plugins so that they must be set to `onPluginBootFailure: abort` to be required."
                },
                "onPluginModuleBootFailure": {
                  "type": "string",
                  "enum": [
                    "continue",
                    "abort"
                  ],
                  "description": "The default value for `onPluginModuleBootFailure` if not specified for a particular plugin module. This defaults to 'abort', which means `onPluginModuleBootFailure: continue` must be specified for backend startup to continue on plugin module boot failure. This can also be set to 'continue', which flips the logic for individual plugin modules so that they must be set to `onPluginModuleBootFailure: abort` to be required."
                }
              }
            },
            "plugins": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "onPluginBootFailure": {
                    "type": "string",
                    "enum": [
                      "continue",
                      "abort"
                    ],
                    "description": "Used to control backend startup behavior when this plugin fails to boot up. Setting this to `continue` allows the backend to continue starting up, even if this plugin fails. This can enable leaving a crashing plugin installed, but still permit backend startup, which may help troubleshoot data-dependent issues. Plugin failures for plugins set to `abort` are fatal (this is the default unless overridden by the `default` setting)."
                  },
                  "modules": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "onPluginModuleBootFailure": {
                          "type": "string",
                          "enum": [
                            "continue",
                            "abort"
                          ],
                          "description": "Used to control backend startup behavior when this plugin module fails to boot up. Setting this to `continue` allows the backend to continue starting up, even if this plugin module fails. This can enable leaving a crashing plugin installed, but still permit backend startup, which may help troubleshoot data-dependent issues. Plugin module failures for plugin modules set to `abort` are fatal (this is the default unless overridden by the `default` setting)."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
