HubSpot · JSON Structure

Hubspot Source Code Validation Result Structure

Result of file validation

Type: object Properties: 3 Required: 1
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

ValidationResult is a JSON Structure definition published by HubSpot, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

valid errors warnings

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Result of file validation",
  "name": "ValidationResult",
  "properties": {
    "valid": {
      "type": "boolean",
      "description": "Whether the file passed validation"
    },
    "errors": {
      "type": "array",
      "description": "List of validation errors (if any)",
      "items": {
        "type": "object",
        "description": "A validation error",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error description"
          },
          "line": {
            "type": "integer",
            "description": "Line number where the error occurred"
          },
          "column": {
            "type": "integer",
            "description": "Column number where the error occurred"
          },
          "category": {
            "type": "string",
            "description": "Error category"
          }
        },
        "required": [
          "message",
          "line"
        ]
      }
    },
    "warnings": {
      "type": "array",
      "description": "List of validation warnings (if any)",
      "items": {
        "type": "object",
        "description": "A validation warning",
        "properties": {
          "message": {
            "type": "string",
            "description": "Warning description"
          },
          "line": {
            "type": "integer",
            "description": "Line number where the warning occurred"
          },
          "suggestion": {
            "type": "string",
            "description": "Suggested fix"
          }
        },
        "required": [
          "message"
        ]
      }
    }
  },
  "required": [
    "valid"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}