{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eurobase-dev/json-schema/eurobase-dev-feedback-submit-request-schema.json",
  "title": "FeedbackSubmitRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eurobase-dev-feedback-api-openapi.yml#/components/schemas/FeedbackSubmitRequest",
  "type": "object",
  "required": [
    "kind",
    "message",
    "routePath"
  ],
  "properties": {
    "projectId": {
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "bug",
        "suggestion"
      ]
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 5000
    },
    "routePath": {
      "type": "string",
      "maxLength": 512
    },
    "routeQuery": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024
    },
    "viewport": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        },
        "height": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        }
      }
    },
    "screenshot": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "contentType",
            "base64"
          ],
          "properties": {
            "contentType": {
              "type": "string",
              "enum": [
                "image/webp",
                "image/png"
              ]
            },
            "base64": {
              "type": "string",
              "contentEncoding": "base64"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}