{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/PromotionValidateResult",
  "definitions": {
    "PromotionValidateResult": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        },
        "errorType": {
          "type": ["string", "null"]
        },
        "errorDetails": {
          "type": ["string", "null"]
        },
        "combineDetails": {
          "anyOf": [
            {
              "$ref": "#/definitions/CombineDetails"
            },
            {
              "type": "null"
            }
          ]
        },
        "suggestions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": ["success", "errorType", "errorDetails", "combineDetails", "suggestions"],
      "additionalProperties": false
    },
    "CombineDetails": {
      "type": "object",
      "additionalProperties": {},
      "properties": {
        "childWorkitemsId": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "parentWorkitemId": {
          "type": "string"
        },
        "sharedComponentsList": {
          "$ref": "#/definitions/SharedComponentsList"
        }
      }
    },
    "SharedComponentsList": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "Maps a comma-separated list of work item names to the components they share."
    }
  }
}
