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 44794479 "severity" : {
44804480 "type" : " number" ,
44814481 "default" : 0
4482+ },
4483+ "risk" : {
4484+ "type" : " string" ,
4485+ "enum" : [
4486+ " low" ,
4487+ " medium" ,
4488+ " high"
4489+ ],
4490+ "default" : " medium"
44824491 }
44834492 },
44844493 "required" : [
44854494 " confidence" ,
44864495 " notes" ,
4496+ " risk" ,
44874497 " severity"
44884498 ]
44894499 },
45584568 ]
45594569 }
45604570 }
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+ }
45614630 }
45624631 ]
45634632 },
Original file line number Diff line number Diff line change @@ -1221,7 +1221,7 @@ export interface components {
12211221 } ) | ( {
12221222 /** @enum {string} */
12231223 type ?: "gptAnomaly" ;
1224- value ?: components [ "schemas" ] [ "SocketIssueBasics" ] & {
1224+ value ?: components [ "schemas" ] [ "SocketIssueBasics" ] & ( {
12251225 /** @default */
12261226 description : string ;
12271227 props : {
@@ -1231,9 +1231,14 @@ export interface components {
12311231 confidence : number ;
12321232 /** @default 0 */
12331233 severity : number ;
1234+ /**
1235+ * @default medium
1236+ * @enum {string}
1237+ */
1238+ risk : "low" | "medium" | "high" ;
12341239 } ;
12351240 usage ?: components [ "schemas" ] [ "SocketUsageRef" ] ;
1236- } ;
1241+ } ) ;
12371242 } ) | ( {
12381243 /** @enum {string} */
12391244 type ?: "gptMalware" ;
@@ -1250,6 +1255,23 @@ export interface components {
12501255 } ;
12511256 usage ?: components [ "schemas" ] [ "SocketUsageRef" ] ;
12521257 } ;
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+ } ) ;
12531275 } ) ;
12541276 SocketMetricSchema : {
12551277 /** @default 0 */
You can’t perform that action at this time.
0 commit comments