{
  "type": "object",
  "required": ["title", "state", "confidence", "severity", "report_type", "project", "author_id"],
  "properties": {
    "title": {
      "type": "string"
    },
    "description": { "type": ["string", "null"] },
    "state": { "type": "string", "enum": ["detected", "resolved", "dismissed", "confirmed"] },
    "severity": {
      "type": "string",
      "enum": ["info", "unknown", "low", "medium", "high", "critical"]
    },
    "confidence": {
      "type": "string",
      "enum": ["ignore", "unknown", "experimental", "low", "medium", "high", "confirmed"]
    },
    "report_type": {
      "type": "string",
      "enum": [
        "sast",
        "dependency_scanning",
        "container_scanning",
        "dast"
      ]
    },
    "project": {
      "oneOf": [
        { "$ref": "../../../../../../../spec/fixtures/api/schemas/public_api/v4/project/identity.json" }
      ]
    },
    "author_id": { "type": "integer" },
    "updated_by_id": { "type": ["integer", "null"] },
    "last_edited_by_id": { "type": ["integer", "null"] },
    "resolved_by_id": { "type": ["integer", "null"] },
    "dismissed_by_id": { "type": ["integer", "null"] },
    "confirmed_by_id": { "type": ["integer", "null"] },
    "closed_by_id": { "type": ["integer", "null"] },
    "start_date": { "type": ["date", "null"] },
    "due_date": { "type": ["date", "null"] },
    "created_at": { "type": "date" },
    "updated_at": { "type": "date" },
    "last_edited_at": { "type": "date" },
    "resolved_at": { "type": "date" },
    "dismissed_at": { "type": "date" },
    "confirmed_at": { "type": "date" },
    "closed_at": { "type": "date" }
  }
}
