{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pentest-tools-com/json-schema/pentest-tools-com-patch-finding-schema.json",
  "title": "PatchFinding",
  "description": "The fields to modify on a finding. At least one modifiable field is required.\nEach field is an object with a `value` and an optional `reason`.\n",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pentest-tools-com-openapi.yml#/components/schemas/PatchFinding",
  "type": "object",
  "properties": {
    "status": {
      "type": "object",
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "string",
          "enum": [
            "open",
            "false_positive",
            "ignored",
            "fixed",
            "accepted"
          ],
          "description": "The new status for the finding."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 1000,
          "description": "An optional note explaining the status change. Recorded in the finding's modification history."
        }
      }
    },
    "risk_level": {
      "type": "object",
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "integer",
          "enum": [
            0,
            1,
            2,
            3,
            4
          ],
          "description": "The new risk level for the finding (0 = info, 1 = low, 2 = medium, 3 = high, 4 = critical)."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 1000,
          "description": "An optional note explaining the risk level change. Recorded in the finding's modification history."
        }
      }
    },
    "verified": {
      "type": "object",
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "boolean",
          "description": "Whether the finding is marked as verified/confirmed."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 1000,
          "description": "An optional note explaining the verified change. Recorded in the finding's modification history."
        }
      }
    }
  }
}