vulnerability_feedback.json 884 Bytes
Newer Older
1 2 3 4 5
{
  "type": "object",
  "required" : [
    "id",
    "project_id",
6
    "author",
7 8 9 10 11 12 13
    "feedback_type",
    "category",
    "project_fingerprint"
  ],
  "properties" : {
    "id": { "type": "integer" },
    "project_id": { "type": "integer" },
14 15 16 17 18
    "author": { "$ref": "../../../../../spec/fixtures/api/schemas/entities/user.json" },
    "pipeline": {
      "id": { "type": ["integer", "null"] },
      "path": { "type": ["string", "null"] }
    },
19
    "issue_iid": { "type": ["integer", "null"] },
20 21 22 23 24 25 26 27 28 29 30 31 32 33
    "issue_url": { "type": ["string", "null"] },
    "feedback_type": {
      "type": "string",
      "enum": ["dismissal", "issue"]
    },
    "category": {
      "type": "string",
      "enum": ["sast", "dependency_scanning", "container_scanning", "dast"]
    },
    "project_fingerprint": { "type": "string" },
    "branch": { "type": "string" }
  },
  "additionalProperties": false
}