{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "allOf": [
    {
      "$ref": "#/definitions/root-items"
    },
    {
      "type": "object",
      "properties": {
        "env": {
          "$ref": "#/definitions/env-items"
        }
      }
    },
    {
      "$ref": "#/definitions/env-items"
    }
  ],
  "definitions": {
    "root-items": {
      "type": "object",
      "required": ["spec_dir", "spec_files"],
      "properties": {
        "spec_dir": {
          "description": "Spec directory path relative to the current working dir when jasmine is executed.",
          "type": "string",
          "default": ""
        },
        "spec_files": {
          "description": "Array of filepaths (and globs) relative to spec_dir to include and exclude.",
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "helpers": {
          "description": "Array of filepaths (and globs) relative to spec_dir to include before jasmine specs",
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        }
      }
    },
    "env-items": {
      "description": "Configuration of the Jasmine environment",
      "type": "object",
      "properties": {
        "autoCleanClosure": {
          "description": "Clean closures when a suite is done running (done by clearing the stored function reference). This prevents memory leaks, but you won't be able to run jasmine multiple times.",
          "type": "boolean",
          "default": false
        },
        "failSpecWithNoExpectations": {
          "description": "Whether to fail the spec if it ran no expectations. By default a spec that ran no expectations is reported as passed. Setting this to true will report such spec as a failure.",
          "type": "boolean",
          "default": false
        },
        "hideDisbaled": {
          "description": "Whether or not reporters should hide disabled specs from their output. Currently only supported by Jasmine's HTMLReporter.",
          "type": "boolean",
          "default": false
        },
        "random": {
          "description": "Whether to randomize spec execution order.",
          "type": "boolean",
          "default": true
        },
        "seed": {
          "description": "Seed to use as the basis of randomization. Null causes the seed to be determined randomly at the start of execution.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "stopOnSpecFailure": {
          "description": "Whether to stop execution of the suite after the first spec failure.",
          "type": "boolean",
          "default": false
        },
        "stopSpecOnExpectationFailure": {
          "description": "Whether to cause specs to only have one expectation failure.",
          "type": "boolean",
          "default": false
        },
        "verboseDeprication": {
          "description": "Whether or not to issue warnings for certain deprecated functionality every time it's used. If not set or set to false, deprecation warnings for methods that tend to be called frequently will be issued only once or otherwise throttled to to prevent the suite output from being flooded with warnings.",
          "type": "boolean",
          "default": false
        }
      }
    }
  },
  "id": "https://json.schemastore.org/jasmine.json",
  "title": "Schema for jasmine JSON config file"
}