{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/pikasTech/HWLAB/config/feature-config.schema.json",
  "title": "HWLAB product feature configuration",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "tracePanel": {
      "x-unidesk-feature": "workbench.trace-panel",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "autoExpandRunning": { "type": "boolean" },
        "autoCollapseTerminal": { "type": "boolean" }
      }
    },
    "rawEvents": {
      "x-unidesk-feature": "workbench.raw-events",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "enabled": { "type": "boolean" },
        "maxEntries": { "type": "integer", "minimum": 1 },
        "maxRetainedBytes": { "type": "integer", "minimum": 1 }
      }
    },
    "debugReplay": {
      "x-unidesk-feature": "workbench.debug-replay",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "enabled": { "type": "boolean" }
      }
    },
    "views": {
      "x-unidesk-feature": "workbench.views",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "traceExplorerUrlTemplate": { "type": "string", "minLength": 1 }
      }
    }
  }
}
