{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "operationId": "export.toDocx",
  "schemas": {
    "input": {
      "type": "object",
      "properties": {
        "mode": {
          "enum": [
            "review-preserving",
            "final",
            "original"
          ]
        }
      },
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "properties": {
        "mode": {
          "enum": [
            "review-preserving",
            "final",
            "original"
          ]
        },
        "byteLength": {
          "type": "integer"
        },
        "contentBase64": {
          "type": "string"
        },
        "report": {
          "type": "object",
          "properties": {
            "warnings": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "feature": {
                    "type": "string",
                    "enum": [
                      "comments",
                      "trackedChanges"
                    ]
                  },
                  "severity": {
                    "const": "warning"
                  },
                  "affectedObjectId": {
                    "type": "string"
                  },
                  "affectedPartUri": {
                    "type": "string"
                  },
                  "canProceed": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false,
                "required": [
                  "code",
                  "message",
                  "feature",
                  "severity",
                  "canProceed"
                ]
              }
            }
          },
          "additionalProperties": false,
          "required": [
            "warnings"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "mode",
        "byteLength",
        "contentBase64",
        "report"
      ]
    }
  }
}
