Skip to content

Commit 3b8e504

Browse files
fix(openapi): sync with openapi definition (#80)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8a461f9 commit 3b8e504

File tree

2 files changed

+126
-7
lines changed

2 files changed

+126
-7
lines changed

openapi.json

Lines changed: 101 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,18 @@
259259
"avgSupplyChainRisk",
260260
"avgVulnerability"
261261
]
262+
},
263+
"url": {
264+
"type": "string",
265+
"default": ""
262266
}
263267
},
264268
"required": [
265269
"healthy",
266270
"id",
267271
"issues",
268-
"score"
272+
"score",
273+
"url"
269274
]
270275
},
271276
"SocketIssue": {
@@ -3992,13 +3997,104 @@
39923997
"type": "object",
39933998
"additionalProperties": false,
39943999
"properties": {
3995-
"notes": {
3996-
"type": "string",
3997-
"default": ""
4000+
"issues": {
4001+
"type": "array",
4002+
"items": {
4003+
"type": "string",
4004+
"default": ""
4005+
}
4006+
},
4007+
"analysis": {
4008+
"type": "array",
4009+
"items": {
4010+
"type": "string",
4011+
"default": ""
4012+
}
4013+
},
4014+
"confidence": {
4015+
"type": "number",
4016+
"default": 0
4017+
},
4018+
"severity": {
4019+
"type": "number",
4020+
"default": 0
4021+
}
4022+
},
4023+
"required": [
4024+
"analysis",
4025+
"confidence",
4026+
"issues",
4027+
"severity"
4028+
]
4029+
},
4030+
"usage": {
4031+
"$ref": "#/components/schemas/SocketUsageRef"
4032+
}
4033+
},
4034+
"required": [
4035+
"description",
4036+
"props"
4037+
]
4038+
}
4039+
]
4040+
}
4041+
}
4042+
},
4043+
{
4044+
"type": "object",
4045+
"additionalProperties": false,
4046+
"properties": {
4047+
"type": {
4048+
"type": "string",
4049+
"enum": [
4050+
"gptSecurity"
4051+
]
4052+
},
4053+
"value": {
4054+
"allOf": [
4055+
{
4056+
"$ref": "#/components/schemas/SocketIssueBasics"
4057+
},
4058+
{
4059+
"type": "object",
4060+
"additionalProperties": false,
4061+
"properties": {
4062+
"description": {
4063+
"type": "string",
4064+
"default": ""
4065+
},
4066+
"props": {
4067+
"type": "object",
4068+
"additionalProperties": false,
4069+
"properties": {
4070+
"issues": {
4071+
"type": "array",
4072+
"items": {
4073+
"type": "string",
4074+
"default": ""
4075+
}
4076+
},
4077+
"analysis": {
4078+
"type": "array",
4079+
"items": {
4080+
"type": "string",
4081+
"default": ""
4082+
}
4083+
},
4084+
"confidence": {
4085+
"type": "number",
4086+
"default": 0
4087+
},
4088+
"severity": {
4089+
"type": "number",
4090+
"default": 0
39984091
}
39994092
},
40004093
"required": [
4001-
"notes"
4094+
"analysis",
4095+
"confidence",
4096+
"issues",
4097+
"severity"
40024098
]
40034099
},
40044100
"usage": {

types/api.d.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export interface components {
111111
/** @default 0 */
112112
avgLicense: number;
113113
};
114+
/** @default */
115+
url: string;
114116
};
115117
SocketIssue: Partial<{
116118
/** @enum {string} */
@@ -1101,8 +1103,29 @@ export interface components {
11011103
/** @default */
11021104
description: string;
11031105
props: {
1104-
/** @default */
1105-
notes: string;
1106+
issues: string[];
1107+
analysis: string[];
1108+
/** @default 0 */
1109+
confidence: number;
1110+
/** @default 0 */
1111+
severity: number;
1112+
};
1113+
usage?: components["schemas"]["SocketUsageRef"];
1114+
};
1115+
}> &
1116+
Partial<{
1117+
/** @enum {string} */
1118+
type?: "gptSecurity";
1119+
value?: components["schemas"]["SocketIssueBasics"] & {
1120+
/** @default */
1121+
description: string;
1122+
props: {
1123+
issues: string[];
1124+
analysis: string[];
1125+
/** @default 0 */
1126+
confidence: number;
1127+
/** @default 0 */
1128+
severity: number;
11061129
};
11071130
usage?: components["schemas"]["SocketUsageRef"];
11081131
};

0 commit comments

Comments
 (0)