{
  "$id": "client-side-extension-manifest.schema.json",
  "title": "Client-side extension manifest",
  "description": "A client-side extension is a plug-in component that customizes or augments the functionality of a client-side application.",

  "definitions": {
    "clientSideExtensionManifest": {
      "type": "object",
      "required": ["componentType", "extensionType"],
      "properties": {
        "componentType": {
          "type": "string",
          "enum": ["Extension"]
        },
        "extensionType": {
          "title": "Client-side Extension Type",
          "description": "Specifies the type of client-side extension. Some types have their own JSON schemas supporting additional fields.",
          "type": "string",
          "enum": [
            "Unknown",
            "ApplicationCustomizer",
            "FieldCustomizer",
            "ListViewCommandSet",
            "SearchQueryModifier",
            "FormCustomizer"
          ]
        }
      },
      "additionalProperties": true,
      "if": {
        "properties": {
          "extensionType": { "const": "FormCustomizer" }
        },
        "required": ["extensionType"]
      },
      "then": {
        "properties": {
          "isPanelExperienceEnabled": {
            "type": "boolean",
            "title": "Is Panel Experience Enabled",
            "description": "When true, the form customizer is rendered inside the new/edit/display panel in the list view instead of opening a separate page. Defaults to false (existing behavior) when absent."
          }
        }
      }
    }
  },

  "type": "object",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "$schema": {
          "type": "string",
          "minLength": 1
        },

        "manifestVersion": { "$ref": "any-value.schema.json" },
        "id": { "$ref": "any-value.schema.json" },
        "alias": { "$ref": "any-value.schema.json" },
        "version": { "$ref": "any-value.schema.json" },
        "loaderConfig": { "$ref": "any-value.schema.json" },
        "componentType": { "$ref": "any-value.schema.json" },
        "extensionType": { "$ref": "any-value.schema.json" },
        "preloadComponents": { "$ref": "any-value.schema.json" },
        "safeWithCustomScriptDisabled": { "$ref": "any-value.schema.json" },
        "requiresCustomScript": { "$ref": "any-value.schema.json" },
        "loadLegacyFabricCss": { "$ref": "any-value.schema.json" },
        "isPanelExperienceEnabled": { "$ref": "any-value.schema.json" }
      },
      "additionalProperties": false
    },
    {
      "$ref": "client-side-component-manifest.schema.json#/definitions/clientSideComponentManifest"
    },
    {
      "$ref": "#/definitions/clientSideExtensionManifest"
    }
  ]
}
