Google Analytics · Schema

ValidationMessage

ValidationMessage schema from Google Analytics API

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

Properties

Name Type Description
fieldPath string Path to the field that caused the validation error.
description string Description of the validation error.
validationCode string A code identifying the type of validation error.
View JSON Schema on GitHub

JSON Schema

measurement-protocol-validation-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/json-schema/measurement-protocol-validation-message-schema.json",
  "title": "ValidationMessage",
  "description": "ValidationMessage schema from Google Analytics API",
  "type": "object",
  "properties": {
    "fieldPath": {
      "type": "string",
      "description": "Path to the field that caused the validation error.",
      "example": "/example/path"
    },
    "description": {
      "type": "string",
      "description": "Description of the validation error.",
      "example": "Example description"
    },
    "validationCode": {
      "type": "string",
      "description": "A code identifying the type of validation error.",
      "enum": [
        "VALUE_INVALID",
        "VALUE_REQUIRED",
        "NAME_INVALID",
        "NAME_RESERVED",
        "VALUE_OUT_OF_BOUNDS",
        "EXCEEDED_MAX_ENTITIES",
        "NAME_DUPLICATED"
      ],
      "example": "VALUE_INVALID"
    }
  }
}