Version2 is a JSON Structure definition published by Salesforce, describing 11 properties, of which 11 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.
{
"type": "object",
"name": "Version2",
"properties": {
"apiName": {
"type": "string"
},
"description": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"rank": {
"type": "integer"
},
"showExplExternally": {
"type": "boolean"
},
"startDate": {
"type": "string"
},
"steps": {
"type": "array",
"description": "",
"items": {
"type": "object",
"properties": {
"actionType": {
"type": "string"
},
"assignment": {
"type": "object",
"properties": {
"assignedParameter": {
"type": "string"
},
"expression": {
"type": "string"
}
},
"required": [
"assignedParameter",
"expression"
]
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"resultIncluded": {
"type": "boolean"
},
"sequenceNumber": {
"type": "integer"
},
"shouldExposeConditionDetails": {
"type": "boolean"
},
"shouldExposeExecPathMsgOnly": {
"type": "boolean"
},
"shouldShowExplExternally": {
"type": "boolean"
},
"stepType": {
"type": "string"
}
},
"required": [
"actionType",
"assignment",
"description",
"name",
"resultIncluded",
"sequenceNumber",
"shouldExposeConditionDetails",
"shouldExposeExecPathMsgOnly",
"shouldShowExplExternally",
"stepType"
]
}
},
"variables": {
"type": "array",
"description": "",
"items": {
"type": "object",
"properties": {
"collection": {
"type": "boolean"
},
"dataType": {
"type": "string"
},
"description": {
"type": "string"
},
"input": {
"type": "boolean"
},
"name": {
"type": "string"
},
"output": {
"type": "boolean"
},
"type": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"collection",
"dataType",
"description",
"input",
"name",
"output",
"type",
"value"
]
}
},
"versionNumber": {
"type": "integer"
}
},
"required": [
"apiName",
"description",
"enabled",
"id",
"name",
"rank",
"showExplExternally",
"startDate",
"steps",
"variables",
"versionNumber"
],
"$schema": "https://json-structure.org/draft/2020-12/schema"
}