Skip to content

Commit 6afa382

Browse files
fix(openapi): sync with openapi definition (#268)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent bd8a994 commit 6afa382

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

openapi.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,20 @@
12881288
"description": "",
12891289
"default": ""
12901290
},
1291+
"authors": {
1292+
"type": "array",
1293+
"items": {
1294+
"type": "string",
1295+
"description": "",
1296+
"default": ""
1297+
},
1298+
"description": ""
1299+
},
1300+
"errorData": {
1301+
"type": "string",
1302+
"description": "",
1303+
"default": ""
1304+
},
12911305
"provenance": {
12921306
"type": "string",
12931307
"description": "",
@@ -1305,6 +1319,8 @@
13051319
}
13061320
},
13071321
"required": [
1322+
"authors",
1323+
"errorData",
13081324
"filepath",
13091325
"match_strength",
13101326
"provenance",
@@ -1423,6 +1439,27 @@
14231439
"type": "integer",
14241440
"description": "",
14251441
"default": 0
1442+
},
1443+
"fix": {
1444+
"type": "object",
1445+
"additionalProperties": false,
1446+
"description": "",
1447+
"properties": {
1448+
"type": {
1449+
"type": "string",
1450+
"description": "",
1451+
"default": ""
1452+
},
1453+
"description": {
1454+
"type": "string",
1455+
"description": "",
1456+
"default": ""
1457+
}
1458+
},
1459+
"required": [
1460+
"description",
1461+
"type"
1462+
]
14261463
}
14271464
},
14281465
"required": [
@@ -7835,6 +7872,16 @@
78357872
"default": false
78367873
}
78377874
},
7875+
{
7876+
"name": "fixable",
7877+
"in": "query",
7878+
"required": false,
7879+
"description": "Include only fixable alerts.",
7880+
"schema": {
7881+
"type": "boolean",
7882+
"default": false
7883+
}
7884+
},
78387885
{
78397886
"name": "licenseattrib",
78407887
"in": "query",
@@ -122129,6 +122176,28 @@
122129122176
"description": "",
122130122177
"default": 0,
122131122178
"nullable": true
122179+
},
122180+
"fix": {
122181+
"type": "object",
122182+
"additionalProperties": false,
122183+
"description": "",
122184+
"properties": {
122185+
"type": {
122186+
"type": "string",
122187+
"description": "",
122188+
"default": ""
122189+
},
122190+
"description": {
122191+
"type": "string",
122192+
"description": "",
122193+
"default": ""
122194+
}
122195+
},
122196+
"required": [
122197+
"description",
122198+
"type"
122199+
],
122200+
"nullable": true
122132122201
}
122133122202
},
122134122203
"required": [

types/api.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,9 @@ export interface components {
11441144
LicenseDetails: {
11451145
/** @default */
11461146
spdxDisj: string;
1147+
authors: string[];
1148+
/** @default */
1149+
errorData: string;
11471150
/** @default */
11481151
provenance: string;
11491152
/** @default */
@@ -1183,6 +1186,12 @@ export interface components {
11831186
action?: string;
11841187
/** @default 0 */
11851188
actionPolicyIndex?: number;
1189+
fix?: {
1190+
/** @default */
1191+
type: string;
1192+
/** @default */
1193+
description: string;
1194+
};
11861195
};
11871196
SocketArtifactLink: {
11881197
/** @default false */
@@ -2895,6 +2904,8 @@ export interface operations {
28952904
alerts?: boolean;
28962905
/** @description Compact metadata. */
28972906
compact?: boolean;
2907+
/** @description Include only fixable alerts. */
2908+
fixable?: boolean;
28982909
/** @description Include license attribution data, including license text and author information. Maps attribution/license text to a list of data objects to which that attribution info applies. */
28992910
licenseattrib?: boolean;
29002911
/** @description Include detailed license information, including location and match strength, for each license datum. */
@@ -47062,6 +47073,12 @@ export interface operations {
4706247073
start?: number | null;
4706347074
/** @default 0 */
4706447075
end?: number | null;
47076+
fix?: {
47077+
/** @default */
47078+
type: string;
47079+
/** @default */
47080+
description: string;
47081+
} | null;
4706547082
};
4706647083
dependency: {
4706747084
/** @default false */

0 commit comments

Comments
 (0)