{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "hostUrl": {
      "title": "Host URL",
      "type": "string",
      "description": "The base DHIS2 instance URL",
      "format": "uri",
      "minLength": 1,
      "examples": [
        "https://play.dhis2.org/2.36.6"
      ]
    },
    "username": {
      "title": "Username",
      "type": "string",
      "description": "Username",
      "minLength": 1,
      "examples": [
        "admin"
      ]
    },
    "password": {
      "title": "Password",
      "type": "string",
      "description": "Password",
      "writeOnly": true,
      "minLength": 1,
      "examples": [
        "@some(!)Password"
      ]
    },
    "apiVersion": {
      "title": "API Version",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "placeholder": "38",
      "description": "DHIS2 api version",
      "minLength": 1,
      "examples": [
        "v2"
      ]
    },
    "pat": {
      "title": "Personal Access Token",
      "type": "string",
      "description": "Personal access token",
      "minLength": 1,
      "examples": [
        "d2pat_vreYExmi0yh92Soy8CCF2zHG0wRjID494035128247"
      ]
    }
  },
  "type": "object",
  "additionalProperties": true,
  "required": [
    "hostUrl",
    "password",
    "username"
  ]
}