{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Command Bar Formatter JSON",
    "description": "JSON object that defines command bar customization options",
    "type": "object",
    "additionalProperties": false,
    "required": ["commands"],
    "properties": {
      "commands": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "enum": [
                "new",
                "newFolder",
                "newWordDocument",
                "newExcelWorkbook",
                "newPowerPointPresentation",
                "newOneNoteNotebook",
                "newFormsForExcel",
                "newVisioDrawing",
                "upload",
                "uploadFile",
                "uploadFolder",
                "open",
                "share",
                "copyLink",
                "download",
                "rename",
                "copyTo",
                "moveTo",
                "delete",
                "edit",
                "comment",
                "editNewMenu",
                "powerBI",
                "powerBIVisualizeList",
                "automate",
                "automateCreateRule",
                "automateManageRules",
                "powerAutomate",
                "powerAutomateCreateFlow",
                "powerAutomateSeeFlows",
                "powerAutomateConfigureFlows",
                "aiBuilderCreate",
                "aiBuilderGoto",
                "aiBuilder",
                "alertMe",
                "newLink",
                "integrate",
                "manageAlert",
                "powerApps",
                "powerAppsCreateApp",
                "powerAppsSeeAllApps",
                "powerAppsCustomizeForms",
                "viewDocumentUnderstandingModels",
                "versionHistory",
                "openInImmersiveReader",
                "classifyAndExtract",
                "checkOut",
                "checkIn",
                "undoCheckOut",
                "properties",
                "pinItem",
                "exportExcel",
                "exportCSV",
                "export",
                "editInGridView",
                "sync",
                "uploadTemplate",
                "addTemplate",
                "openInOfficeOnline",
                "openInOfficeClient",
                "addShortcut",
                "pinToQuickAccess",
                "unpinFromQuickAccess"
              ]
            },
            "hide": {
              "anyOf": [
                {
                  "$ref": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json#definitions/expression"
                },
                {
                  "type": "boolean"
                },
                {
                  "enum": ["true", "false"]
                }
              ]
            },
            "position": {
              "anyOf": [
                {
                  "$ref": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json#definitions/expression"
                },
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "pattern": "^[0-9]+$"
                }
              ]
            },
            "primary": {
              "anyOf": [
                {
                  "$ref": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json#definitions/expression"
                },
                {
                  "type": "boolean"
                },
                {
                  "enum": ["true", "false"]
                }
              ]
            },
            "text": {
              "anyOf": [
                {
                  "$ref": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json#definitions/expression"
                },
                {
                  "type": "string"
                }
              ]
            },
            "iconName": {
              "anyOf": [
                {
                  "$ref": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json#definitions/expression"
                },
                {
                  "type": "string"
                }
              ]
            },
            "title": {
              "anyOf": [
                {
                  "$ref": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json#definitions/expression"
                },
                {
                  "type": "string"
                }
              ]
            },
            "sectionType": {
              "enum": ["Primary", "Overflow"]
            },
            "selectionModes": {
              "type": "array",
              "items": {
                "enum": ["NoSelection", "SingleSelection", "MultiSelection"]
              }
            }
          },
          "required": ["key"]
        }
      }
    }
}
  