{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/actionbox-cloud/json-schema/actionbox-cloud-product-feedback-create-schema.json",
  "title": "ProductFeedbackCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/actionbox-cloud-feedback-api-openapi.yml#/components/schemas/ProductFeedbackCreate",
  "properties": {
    "submission_id": {
      "type": "string",
      "format": "uuid",
      "title": "Submission Id"
    },
    "category": {
      "type": "string",
      "enum": [
        "idea",
        "problem",
        "question"
      ],
      "title": "Category"
    },
    "message": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 20,
      "title": "Message"
    },
    "page": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Page"
    },
    "client_context": {
      "$ref": "#/$defs/FeedbackClientContext"
    }
  },
  "type": "object",
  "required": [
    "submission_id",
    "category",
    "message",
    "page",
    "client_context"
  ],
  "$defs": {
    "FeedbackClientContext": {
      "properties": {
        "theme": {
          "type": "string",
          "enum": [
            "light",
            "dark"
          ],
          "title": "Theme"
        },
        "viewport": {
          "type": "string",
          "enum": [
            "mobile",
            "tablet",
            "desktop"
          ],
          "title": "Viewport"
        },
        "app_version": {
          "type": "string",
          "maxLength": 40,
          "minLength": 1,
          "title": "App Version"
        }
      },
      "type": "object",
      "required": [
        "theme",
        "viewport",
        "app_version"
      ],
      "title": "FeedbackClientContext"
    }
  }
}