Skip to content

Commit fe448f7

Browse files
committed
local findings validation with basic schema
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
1 parent b6a3bd6 commit fe448f7

6 files changed

Lines changed: 1941 additions & 12 deletions

File tree

parser-sdk/nodejs/findings-schema.json

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema",
3+
"type": "array",
4+
"items": {
5+
"$ref": "#/$defs/finding"
6+
},
7+
"$defs": {
8+
"finding": {
9+
"type": "object",
10+
"properties": {
11+
"id": {
12+
"description": "The unique identifier for a finding",
13+
"type": "string"
14+
},
15+
"name": {
16+
"description": "The unique identifier for a finding",
17+
"type": "string"
18+
},
19+
"description": {
20+
"description": "The unique identifier for a finding",
21+
"type": [
22+
"string",
23+
"null"
24+
]
25+
},
26+
"category": {
27+
"description": "The unique identifier for a finding",
28+
"type": "string"
29+
},
30+
"osi_layer": {
31+
"description": "The unique identifier for a finding",
32+
"type": "string"
33+
},
34+
"severity": {
35+
"description": "The unique identifier for a finding",
36+
"type": "string"
37+
},
38+
"attributes": {
39+
"description": "...",
40+
"type": "object"
41+
}
42+
},
43+
"required": [
44+
"id",
45+
"name",
46+
"description",
47+
"category",
48+
"osi_layer",
49+
"severity",
50+
"attributes",
51+
"location"
52+
]
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)