{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "sent": {
          "type": "boolean",
          "const": false
        },
        "saved": {
          "type": "boolean"
        },
        "file": {
          "type": "string"
        },
        "report": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string"
            },
            "body": {
              "type": "string"
            }
          },
          "required": ["title", "body"],
          "additionalProperties": {}
        }
      },
      "required": ["sent", "report"],
      "additionalProperties": {},
      "title": "Feedback not sent",
      "description": "With --dry-run; or, in unattended mode without --submit, saved: true and the file the report was appended to as one JSON line."
    },
    {
      "type": "object",
      "properties": {
        "sent": {
          "type": "boolean",
          "const": true
        },
        "issue": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "identifier": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": ["id", "identifier", "url"],
          "additionalProperties": {}
        }
      },
      "required": ["sent", "issue"],
      "additionalProperties": {},
      "title": "Feedback sent"
    }
  ]
}
