{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://json.schemastore.org/rc3-settings-0.0.3.json",
  "$defs": {
    "collection_ref": {
      "type": "object",
      "properties": {
        "name": { "type": "string" },
        "location": { "type": "string" }
      },
      "additionalProperties": false
    }
  },
  "title": "rc3 settings",
  "description": "RC settings stored in the users RC_HOME directory",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "The JSON schema to use for validation",
      "type": "string"
    },
    "save_responses": {
      "description": "Whether to save .response files in the same dir as the .request file",
      "type": "boolean"
    },
    "request_timeout_seconds": {
      "description": "Timeout for requests in seconds",
      "type": "integer"
    },
    "indent": {
      "description": "Indentation width for JSON output",
      "type": "integer"
    },
    "indent_type": {
      "description": "Indentation type for JSON output",
      "type": "string",
      "enum": ["space", "tab"]
    },
    "headers_send_nocache": {
      "description": "Whether to send no-cache headers",
      "type": "boolean"
    },
    "follow_redirects": {
      "description": "Whether to follow redirects",
      "type": "boolean"
    },
    "ca_cert_verification": {
      "description": "Whether to verify SSL certificates",
      "type": "boolean"
    },
    "ca_bundle": {
      "description": "Path to Python-like CA truststore file",
      "type": "string"
    },
    "current_collection": {
      "description": "The current collection",
      "type": "string"
    },
    "collections": {
      "description": "The list of collections (each collection should be an absolute path to the collection root directory)",
      "type": "array",
      "items": {
        "$ref": "#/$defs/collection_ref"
      }
    }
  },
  "type": "object"
}
