{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "username": {
      "title": "Username",
      "type": "string",
      "description": "Username",
      "examples": ["test@openfn.org"]
    },
    "password": {
      "title": "Password",
      "type": "string",
      "description": "Password",
      "writeOnly": true,
      "examples": ["@some(!)Password"]
    },
    "access_token": {
      "title": "Access Token",
      "type": "string",
      "description": "OAuth Access token, API key or other Bearer token",
      "writeOnly": true,
      "examples": ["00QCjAl4MlV-WPX"]
    },
    "baseUrl": {
      "title": "Base URL",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The base URL (http://www.example.com)",
      "format": "uri",
      "minLength": 1,
      "examples": ["https://instance_name.surveycto.com"]
    },
    "tls":{
      "title": "TLS Options",
      "type": "object",
      "description": "TLS options to use for HTTPS requests. See https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions",
      "writeOnly": true,
      "examples": [
        {
          "cert": "-----BEGIN CERTIFICATE-----\nMIIDXTCCAkWgAwIBAgIJAL5z1k3f4b2wMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdTYW4gSm9zZTET\n-----END CERTIFICATE-----"
        }]
    }
  },
  "type": "object",
  "additionalProperties": true
}
