Blob Blame History Raw
{
  "$schema": "http://json-schema.org/draft-04/schema#",

  "title": "Config file",
  "description": "Config file to store configuration, e.g.: definition of groups and pools",

  "type": "object",

  "properties": {

    "auth": {
      "description": "Authentication data for REST API",
      "type": "object",
      "properties": {
        "username": {
          "description": "Username",
          "type": "string",
          "minLength": 3,
          "maxLength": 64
        },
        "password": {
          "description": "Password",
          "minLength": 8,
          "maxLength": 64
        }
      },
      "required": ["username", "password"],
      "additionalProperties": false
    },

    "apps": {
      "description": "APP definitions",
      "type": "array",
      "items": {
        "allOf": [
          { "$ref": "definitions.json#/app" },
          { "properties": {
              "id": {
                "description": "APP ID",
                "$ref": "definitions.json#/uint"
              }
            },
            "required": ["id"]
          }
        ]
      },
      "uniqueItems": true
    },

    "pools": {
      "description": "Pools of APPs definitions",
      "type": "array",
      "items": { "$ref": "definitions.json#/pool_cfg" },
      "uniqueItems": true
    },

    "sstbf": {
      "description": "SST-BF configuration",
      "type": "object",
      "properties": {
        "configured": {
          "description": "SST-BF status",
          "type": "boolean"
        }
      },
      "required": ["configured"],
      "additionalProperties": false
    },

    "power_profiles": {
      "description": "Power profiles definitions",
      "type": "array",
      "items": { "$ref": "definitions.json#/power_profile_cfg" },
      "uniqueItems": true
    },

    "power_profiles_verify": {
      "description": "Verify changes to Power Profiles or Pools with Power Profiles assigned",
      "type": "boolean"
    },

    "power_profiles_expert_mode": {
      "description": "Power Profiles Expert mode, make profiles editable",
      "type": "boolean"
    }
  },

  "required": ["auth", "pools"],
  "additionalProperties": false
}