{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/components/schemas/PkgWorkflowTransitionTriggerFullVM",
  "components": {
    "schemas": {
      "PkgWorkflowTransitionTriggerFullVM": {
        "required": [
          "changeUserRelationTypeKey",
          "fromStateKey",
          "orderNumber",
          "toStateKey",
          "workflowKey"
        ],
        "type": "object",
        "properties": {
          "changeToValueUserRelationTypeKey": {
            "type": "string",
            "nullable": true
          },
          "changeUserRelationTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "fromStateKey": {
            "minLength": 1,
            "type": "string"
          },
          "orderNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pipelineKey": {
            "type": "string",
            "nullable": true
          },
          "toStateKey": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "enum": [
              "default",
              "to_current_user",
              "select_user_from_allowed"
            ],
            "type": "string",
            "nullable": true
          },
          "workflowKey": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  }
}