{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scriptivox-com/json-schema/scriptivox-com-feedback-request-schema.json",
  "title": "FeedbackRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scriptivox-com-openapi.json#/components/schemas/FeedbackRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "rating": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5,
      "description": "How good the transcript is, 1 (poor) to 5 (excellent). Completed jobs only. Needs comment or their_words, at least 20 characters."
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "accuracy",
          "clarity",
          "speakers",
          "timing",
          "language",
          "formatting",
          "other"
        ]
      },
      "maxItems": 7,
      "description": "Optional: what the feedback is about."
    },
    "comment": {
      "type": "string",
      "maxLength": 1000,
      "description": "What made it that rating, in words. With a rating: comment or their_words, at least 20 characters."
    },
    "their_words": {
      "type": "string",
      "maxLength": 1000,
      "description": "Your end user's own words, unchanged, if you have them. Counts as the words for a rating or a problem report."
    },
    "problem": {
      "type": "boolean",
      "description": "true to report a problem with this job (failed, empty or wrong). Needs what_happened."
    },
    "what_happened": {
      "type": "string",
      "maxLength": 1000,
      "description": "What went wrong, for a problem report: what_happened or their_words, at least 20 characters."
    }
  }
}