{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eurobase-dev/json-schema/eurobase-dev-feedback-submit-response-schema.json",
  "title": "FeedbackSubmitResponse",
  "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/FeedbackSubmitResponse",
  "type": "object",
  "required": [
    "feedback"
  ],
  "properties": {
    "feedback": {
      "$ref": "#/$defs/FeedbackSubmission"
    }
  },
  "$defs": {
    "FeedbackScreenshotSummary": {
      "type": "object",
      "required": [
        "attached",
        "contentType",
        "byteSize"
      ],
      "properties": {
        "attached": {
          "type": "boolean"
        },
        "contentType": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "image/webp",
            "image/png",
            null
          ]
        },
        "byteSize": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "FeedbackSubmission": {
      "type": "object",
      "required": [
        "id",
        "createdAt",
        "createdByUserId",
        "kind",
        "message",
        "routePath",
        "routeQuery",
        "viewport",
        "screenshot",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "createdByUserId": {
          "type": "string"
        },
        "createdByEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "organizationId": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectId": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectName": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectSlug": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "bug",
            "suggestion"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "routePath": {
          "type": "string"
        },
        "routeQuery": {
          "type": "string"
        },
        "viewport": {
          "type": "object",
          "required": [
            "width",
            "height"
          ],
          "properties": {
            "width": {
              "type": [
                "integer",
                "null"
              ]
            },
            "height": {
              "type": [
                "integer",
                "null"
              ]
            }
          }
        },
        "screenshot": {
          "$ref": "#/$defs/FeedbackScreenshotSummary"
        },
        "status": {
          "type": "string",
          "enum": [
            "new",
            "reviewed",
            "archived"
          ]
        },
        "reviewedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "reviewedByUserId": {
          "type": [
            "string",
            "null"
          ]
        },
        "archivedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}