Salesforce · JSON Structure

Salesforce Method Structure

Type: object Properties: 8 Required: 8
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Method is a JSON Structure definition published by Salesforce, describing 8 properties, of which 8 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

annotations location modifiers name parameters references returnType type

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

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "Method",
  "properties": {
    "annotations": {
      "type": "array",
      "description": "",
      "items": {
        "type": "string"
      }
    },
    "location": {
      "type": "object",
      "properties": {
        "column": {
          "type": "integer"
        },
        "line": {
          "type": "integer"
        }
      },
      "required": [
        "column",
        "line"
      ]
    },
    "modifiers": {
      "type": "array",
      "description": "",
      "items": {
        "type": "string"
      }
    },
    "name": {
      "type": "string"
    },
    "parameters": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type"
        ]
      }
    },
    "references": {
      "type": "array",
      "description": "",
      "items": {
        "type": "string"
      }
    },
    "returnType": {
      "type": "string"
    },
    "type": {
      "type": "['string', 'null']"
    }
  },
  "required": [
    "annotations",
    "location",
    "modifiers",
    "name",
    "parameters",
    "references",
    "returnType",
    "type"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}