File tree Expand file tree Collapse file tree 2 files changed +93
-2
lines changed Expand file tree Collapse file tree 2 files changed +93
-2
lines changed Original file line number Diff line number Diff line change 4479
4479
"severity" : {
4480
4480
"type" : " number" ,
4481
4481
"default" : 0
4482
+ },
4483
+ "risk" : {
4484
+ "type" : " string" ,
4485
+ "enum" : [
4486
+ " low" ,
4487
+ " medium" ,
4488
+ " high"
4489
+ ],
4490
+ "default" : " medium"
4482
4491
}
4483
4492
},
4484
4493
"required" : [
4485
4494
" confidence" ,
4486
4495
" notes" ,
4496
+ " risk" ,
4487
4497
" severity"
4488
4498
]
4489
4499
},
4558
4568
]
4559
4569
}
4560
4570
}
4571
+ },
4572
+ {
4573
+ "type" : " object" ,
4574
+ "additionalProperties" : false ,
4575
+ "properties" : {
4576
+ "type" : {
4577
+ "type" : " string" ,
4578
+ "enum" : [
4579
+ " potentialVulnerability"
4580
+ ]
4581
+ },
4582
+ "value" : {
4583
+ "allOf" : [
4584
+ {
4585
+ "$ref" : " #/components/schemas/SocketIssueBasics"
4586
+ },
4587
+ {
4588
+ "type" : " object" ,
4589
+ "additionalProperties" : false ,
4590
+ "properties" : {
4591
+ "description" : {
4592
+ "type" : " string" ,
4593
+ "default" : " "
4594
+ },
4595
+ "props" : {
4596
+ "type" : " object" ,
4597
+ "additionalProperties" : false ,
4598
+ "properties" : {
4599
+ "note" : {
4600
+ "type" : " string" ,
4601
+ "default" : " "
4602
+ },
4603
+ "risk" : {
4604
+ "type" : " string" ,
4605
+ "enum" : [
4606
+ " low" ,
4607
+ " medium" ,
4608
+ " high"
4609
+ ],
4610
+ "default" : " medium"
4611
+ }
4612
+ },
4613
+ "required" : [
4614
+ " note" ,
4615
+ " risk"
4616
+ ]
4617
+ },
4618
+ "usage" : {
4619
+ "$ref" : " #/components/schemas/SocketUsageRef"
4620
+ }
4621
+ },
4622
+ "required" : [
4623
+ " description" ,
4624
+ " props"
4625
+ ]
4626
+ }
4627
+ ]
4628
+ }
4629
+ }
4561
4630
}
4562
4631
]
4563
4632
},
Original file line number Diff line number Diff line change @@ -1221,7 +1221,7 @@ export interface components {
1221
1221
} ) | ( {
1222
1222
/** @enum {string} */
1223
1223
type ?: "gptAnomaly" ;
1224
- value ?: components [ "schemas" ] [ "SocketIssueBasics" ] & {
1224
+ value ?: components [ "schemas" ] [ "SocketIssueBasics" ] & ( {
1225
1225
/** @default */
1226
1226
description : string ;
1227
1227
props : {
@@ -1231,9 +1231,14 @@ export interface components {
1231
1231
confidence : number ;
1232
1232
/** @default 0 */
1233
1233
severity : number ;
1234
+ /**
1235
+ * @default medium
1236
+ * @enum {string}
1237
+ */
1238
+ risk : "low" | "medium" | "high" ;
1234
1239
} ;
1235
1240
usage ?: components [ "schemas" ] [ "SocketUsageRef" ] ;
1236
- } ;
1241
+ } ) ;
1237
1242
} ) | ( {
1238
1243
/** @enum {string} */
1239
1244
type ?: "gptMalware" ;
@@ -1250,6 +1255,23 @@ export interface components {
1250
1255
} ;
1251
1256
usage ?: components [ "schemas" ] [ "SocketUsageRef" ] ;
1252
1257
} ;
1258
+ } ) | ( {
1259
+ /** @enum {string} */
1260
+ type ?: "potentialVulnerability" ;
1261
+ value ?: components [ "schemas" ] [ "SocketIssueBasics" ] & ( {
1262
+ /** @default */
1263
+ description : string ;
1264
+ props : {
1265
+ /** @default */
1266
+ note : string ;
1267
+ /**
1268
+ * @default medium
1269
+ * @enum {string}
1270
+ */
1271
+ risk : "low" | "medium" | "high" ;
1272
+ } ;
1273
+ usage ?: components [ "schemas" ] [ "SocketUsageRef" ] ;
1274
+ } ) ;
1253
1275
} ) ;
1254
1276
SocketMetricSchema : {
1255
1277
/** @default 0 */
You can’t perform that action at this time.
0 commit comments