{
  "$defs": {
    "CorrectionOptions": {
      "description": "CorrectionOptions defines a structure used to pass configuration options to correct a previous invoice.",
      "properties": {
        "ext": {
          "$ref": "https://gobl.org/draft-0/tax/extensions",
          "description": "Extensions for region specific requirements.",
          "title": "Extensions"
        },
        "issue_date": {
          "$ref": "https://gobl.org/draft-0/cal/date",
          "description": "When the new corrective invoice's issue date should be set to.",
          "title": "Issue Date"
        },
        "reason": {
          "description": "Human readable reason for the corrective operation.",
          "title": "Reason",
          "type": "string"
        },
        "stamps": {
          "description": "Stamps of the previous document to include in the preceding data.",
          "items": {
            "$ref": "https://gobl.org/draft-0/head/stamp"
          },
          "title": "Stamps",
          "type": "array"
        },
        "type": {
          "$ref": "https://gobl.org/draft-0/cbc/key",
          "description": "The type of corrective invoice to produce.",
          "title": "Type"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "$id": "https://gobl.org/draft-0/bill/correction-options",
  "$ref": "#/$defs/CorrectionOptions",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}