{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "edit.schema.json",
  "title": "xlvane edit --json",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "xlvane": {
          "const": 1
        },
        "command": {
          "const": "edit"
        },
        "ok": {
          "const": true
        },
        "result": {
          "type": "object",
          "properties": {
            "input": {
              "type": "string"
            },
            "output": {
              "type": "string"
            },
            "rowsInserted": {
              "type": "integer",
              "minimum": 0
            },
            "rowsDeleted": {
              "type": "integer",
              "minimum": 0
            },
            "rowSheet": {
              "type": [
                "string",
                "null"
              ]
            },
            "cellsSet": {
              "type": "integer",
              "minimum": 0
            },
            "rowsAppended": {
              "type": "integer",
              "minimum": 0
            },
            "appendSheet": {
              "type": [
                "string",
                "null"
              ]
            },
            "warnings": {
              "type": "array",
              "items": {
                "$ref": "common.schema.json#/$defs/warning"
              }
            },
            "bytes": {
              "type": "integer",
              "minimum": 0
            },
            "written": {
              "type": "boolean"
            },
            "replaced": {
              "type": "boolean"
            }
          },
          "required": [
            "input",
            "output",
            "rowsInserted",
            "rowsDeleted",
            "rowSheet",
            "cellsSet",
            "rowsAppended",
            "appendSheet",
            "warnings",
            "bytes",
            "written",
            "replaced"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "xlvane",
        "command",
        "ok",
        "result"
      ],
      "additionalProperties": false
    },
    {
      "$ref": "common.schema.json#/$defs/errorEnvelope"
    }
  ]
}
