{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scriptivox-com/json-schema/scriptivox-com-feedback-result-schema.json",
  "title": "FeedbackResult",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scriptivox-com-openapi.json#/components/schemas/FeedbackResult",
  "type": "object",
  "required": [
    "transcription_id",
    "rating_saved",
    "problem_report"
  ],
  "properties": {
    "transcription_id": {
      "type": "string",
      "format": "uuid",
      "description": "The job the feedback is about."
    },
    "rating_saved": {
      "type": "boolean",
      "description": "True when a rating was sent and saved as a rating. False when ratings are switched off (see saved_as)."
    },
    "saved_as": {
      "type": "string",
      "enum": [
        "problem",
        "comment",
        "question"
      ],
      "description": "Set when the kind you sent is switched off: the kind it was kept as instead (a rating of 1 or 2 becomes a problem report)."
    },
    "notice": {
      "type": "string",
      "description": "Set with saved_as: what was switched off and how your feedback was kept."
    },
    "problem_report": {
      "type": [
        "object",
        "null"
      ],
      "description": "The problem report opened or added to, or null.",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "The report id (null if a parallel call opened it a moment earlier)."
        },
        "status": {
          "type": "string",
          "enum": [
            "open"
          ],
          "description": "Open until the team resolves it (within 24 hours)."
        },
        "added_to_open_report": {
          "type": "boolean",
          "description": "True when this was added to an earlier report on the same job: one still open, or one the team had resolved, which opens again."
        },
        "opened_by_rating": {
          "type": "boolean",
          "description": "True when a rating of 1 or 2 with words opened it."
        }
      }
    },
    "problem_report_error": {
      "type": "string",
      "description": "Set when the rating was saved but the problem report was not (for example the daily limit)."
    }
  }
}