{
  "type": "object",
  "required" : [
    "id",
    "project_id",
    "author",
    "feedback_type",
    "category",
    "project_fingerprint"
  ],
  "properties" : {
    "id": { "type": "integer" },
    "created_at": { "type": "date" },
    "project_id": { "type": "integer" },
    "author": { "$ref": "../../../../../spec/fixtures/api/schemas/entities/user.json" },
    "comment_details": {
      "comment": { "type": ["string", "null"] },
      "comment_author": { "$ref": "../../../../../spec/fixtures/api/schemas/entities/user.json" },
      "comment_timestamp": { "type": ["timestamp", "null"] }
    },
    "pipeline": {
      "id": { "type": ["integer", "null"] },
      "path": { "type": ["string", "null"] }
    },
    "issue_iid": { "type": ["integer", "null"] },
    "issue_url": { "type": ["string", "null"] },
    "merge_request_iid": { "type": ["integer", "null"] },
    "merge_request_path": { "type": ["string", "null"] },
    "feedback_type": {
      "type": "string",
      "enum": ["dismissal", "issue", "merge_request"]
    },
    "category": {
      "type": "string",
      "enum": ["sast", "dependency_scanning", "container_scanning", "dast", "coverage_fuzzing"]
    },
    "project_fingerprint": { "type": "string" },
    "branch": { "type": ["string", "null"] },
    "destroy_vulnerability_feedback_dismissal_path": { "type": "string" }
  },
  "additionalProperties": false
}
