{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-sales-cloud/json-schema/salesforce-sales-cloud-report-metadata-schema.json",
  "title": "ReportMetadata",
  "description": "Metadata describing a report configuration",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-sales-cloud-reports-api-openapi.yml#/components/schemas/ReportMetadata",
  "type": "object",
  "properties": {
    "aggregates": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "chart": {
      "type": [
        "object",
        "null"
      ]
    },
    "crossFilters": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "detailColumns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "developerName": {
      "type": "string"
    },
    "division": {
      "type": [
        "string",
        "null"
      ]
    },
    "folderId": {
      "type": "string"
    },
    "groupingsAcross": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "dateGranularity": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sortAggregate": {
            "type": [
              "string",
              "null"
            ]
          },
          "sortOrder": {
            "type": "string"
          }
        }
      }
    },
    "groupingsDown": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "dateGranularity": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sortAggregate": {
            "type": [
              "string",
              "null"
            ]
          },
          "sortOrder": {
            "type": "string"
          }
        }
      }
    },
    "hasDetailRows": {
      "type": "boolean"
    },
    "hasRecordCount": {
      "type": "boolean"
    },
    "historicalSnapshotDates": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "reportBooleanFilter": {
      "type": [
        "string",
        "null"
      ]
    },
    "reportFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReportFilter"
      }
    },
    "reportFormat": {
      "type": "string",
      "enum": [
        "TABULAR",
        "SUMMARY",
        "MATRIX",
        "MULTI_BLOCK"
      ]
    },
    "reportType": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "scope": {
      "type": "string"
    },
    "sortBy": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "standardDateFilter": {
      "type": "object",
      "properties": {
        "column": {
          "type": "string"
        },
        "durationValue": {
          "type": "string"
        },
        "endDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "startDate": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  },
  "$defs": {
    "ReportFilter": {
      "type": "object",
      "description": "A filter applied to a report",
      "properties": {
        "column": {
          "type": "string"
        },
        "filterType": {
          "type": "string"
        },
        "isRunPageEditable": {
          "type": "boolean"
        },
        "operator": {
          "type": "string",
          "enum": [
            "equals",
            "notEqual",
            "lessThan",
            "greaterThan",
            "lessOrEqual",
            "greaterOrEqual",
            "contains",
            "notContain",
            "startsWith",
            "includes",
            "excludes"
          ]
        },
        "value": {
          "type": "string"
        }
      }
    }
  }
}