Skip to content

Commit

Permalink
Address code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Mar 12, 2024
1 parent 565fe1b commit 2003be5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions codetf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@
},
"findings": {
"type": "array",
"items": { "$ref": "#/definitions/detector/finding" }
"items": { "$ref": "#/definitions/detector/finding" },
"maxItems": 20
}
},
"additionalProperties": true,
Expand All @@ -227,9 +228,9 @@
"finding": {
"type": "object",
"properties": {
"guid": {
"id": {
"type": "string",
"description": "A unique identifier for the finding"
"description": "A unique identifier for the finding (e.g. 'guid' from SARIF)"
},
"fixed": {
"type": "boolean",
Expand All @@ -241,7 +242,7 @@
}
},
"additionalProperties": true,
"required": ["guid", "fixed"],
"required": ["id", "fixed"],
"if": {
"properties": {
"fixed": { "boolean": false }
Expand All @@ -258,11 +259,11 @@
},
"name": {
"type": "string",
"description": "The name of the rule"
"description": "The name of the rule. Potentially the same as the ID, but more human-readable"
},
"description": {
"url": {
"type": "string",
"description": "A description of the rule"
"description": "Link to the rule documentation"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit 2003be5

Please sign in to comment.