Skip to content

Commit

Permalink
Add findings section to detectorTool
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Mar 8, 2024
1 parent 0f1aafc commit 63278ad
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion codetf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,66 @@
"type": "string",
"description": "Name of the tool that detected the issue"
},
"rule": {
"$ref": "#/definitions/detector/rule",
"description": "The rule that detected the issue"
},
"ruleId": {
"type": "string",
"description": "ID of the tool vendor rule that detected the issue"
},
"ruleDescription": {
"type": "string",
"description": "Short description of the tool vendor rule that detected the issue"
},
"findings": {
"type": "array",
"items": { "$ref": "#/definitions/detector/finding" }
}
},
"additionalProperties": true,
"required": ["name", "ruleId"]
"required": ["name", "rule", "findings"]
},

"detector": {
"finding": {
"type": "object",
"properties": {
"guid": {
"type": "string",
"description": "A unique identifier for the finding"
},
"fixed": {
"type": "boolean",
"description": "Whether the finding was fixed by the codemod"
},
"reason": {
"type": "string",
"description": "A human-readable description of the finding"
}
},
"additionalProperties": true,
"required": ["guid", "fixed"]
},
"rule": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The ID of the rule"
},
"name": {
"type": "string",
"description": "The name of the rule"
},
"description": {
"type": "string",
"description": "A description of the rule"
}
},
"additionalProperties": false,
"required": ["id", "name"]
}
}
},

Expand Down

0 comments on commit 63278ad

Please sign in to comment.