Skip to content

Commit ab18403

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

File tree

2 files changed

+81
-19
lines changed

2 files changed

+81
-19
lines changed

openapi.json

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,24 @@
361361
]
362362
}
363363
},
364+
"cvss": {
365+
"type": "object",
366+
"additionalProperties": false,
367+
"properties": {
368+
"score": {
369+
"type": "number",
370+
"default": 0
371+
},
372+
"vectorString": {
373+
"type": "string",
374+
"default": ""
375+
}
376+
},
377+
"required": [
378+
"score",
379+
"vectorString"
380+
]
381+
},
364382
"description": {
365383
"type": "string",
366384
"default": ""
@@ -392,6 +410,7 @@
392410
},
393411
"required": [
394412
"cveId",
413+
"cvss",
395414
"cwes",
396415
"description",
397416
"firstPatchedVersionIdentifier",
@@ -472,6 +491,24 @@
472491
]
473492
}
474493
},
494+
"cvss": {
495+
"type": "object",
496+
"additionalProperties": false,
497+
"properties": {
498+
"score": {
499+
"type": "number",
500+
"default": 0
501+
},
502+
"vectorString": {
503+
"type": "string",
504+
"default": ""
505+
}
506+
},
507+
"required": [
508+
"score",
509+
"vectorString"
510+
]
511+
},
475512
"description": {
476513
"type": "string",
477514
"default": ""
@@ -486,7 +523,7 @@
486523
},
487524
"severity": {
488525
"type": "string",
489-
"default": "high"
526+
"default": "critical"
490527
},
491528
"title": {
492529
"type": "string",
@@ -503,6 +540,7 @@
503540
},
504541
"required": [
505542
"cveId",
543+
"cvss",
506544
"cwes",
507545
"description",
508546
"firstPatchedVersionIdentifier",
@@ -583,6 +621,24 @@
583621
]
584622
}
585623
},
624+
"cvss": {
625+
"type": "object",
626+
"additionalProperties": false,
627+
"properties": {
628+
"score": {
629+
"type": "number",
630+
"default": 0
631+
},
632+
"vectorString": {
633+
"type": "string",
634+
"default": ""
635+
}
636+
},
637+
"required": [
638+
"score",
639+
"vectorString"
640+
]
641+
},
586642
"description": {
587643
"type": "string",
588644
"default": ""
@@ -597,7 +653,7 @@
597653
},
598654
"severity": {
599655
"type": "string",
600-
"default": "low"
656+
"default": "critical"
601657
},
602658
"title": {
603659
"type": "string",
@@ -614,6 +670,7 @@
614670
},
615671
"required": [
616672
"cveId",
673+
"cvss",
617674
"cwes",
618675
"description",
619676
"firstPatchedVersionIdentifier",
@@ -5871,16 +5928,7 @@
58715928
},
58725929
"format": "binary"
58735930
},
5874-
"properties": {
5875-
"repository": {
5876-
"type": "string",
5877-
"default": ""
5878-
},
5879-
"branch": {
5880-
"type": "string",
5881-
"default": ""
5882-
}
5883-
}
5931+
"properties": {}
58845932
}
58855933
}
58865934
},

types/api.d.ts

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ export interface components {
203203
/** @default */
204204
name: string;
205205
}[];
206+
cvss: {
207+
/** @default 0 */
208+
score: number;
209+
/** @default */
210+
vectorString: string;
211+
};
206212
/** @default */
207213
description: string;
208214
/** @default */
@@ -237,13 +243,19 @@ export interface components {
237243
/** @default */
238244
name: string;
239245
}[];
246+
cvss: {
247+
/** @default 0 */
248+
score: number;
249+
/** @default */
250+
vectorString: string;
251+
};
240252
/** @default */
241253
description: string;
242254
/** @default */
243255
firstPatchedVersionIdentifier: string;
244256
/** @default */
245257
ghsaId: string;
246-
/** @default high */
258+
/** @default critical */
247259
severity: string;
248260
/** @default */
249261
title: string;
@@ -271,13 +283,19 @@ export interface components {
271283
/** @default */
272284
name: string;
273285
}[];
286+
cvss: {
287+
/** @default 0 */
288+
score: number;
289+
/** @default */
290+
vectorString: string;
291+
};
274292
/** @default */
275293
description: string;
276294
/** @default */
277295
firstPatchedVersionIdentifier: string;
278296
/** @default */
279297
ghsaId: string;
280-
/** @default low */
298+
/** @default critical */
281299
severity: string;
282300
/** @default */
283301
title: string;
@@ -1887,11 +1905,7 @@ export interface operations {
18871905
requestBody?: {
18881906
content: {
18891907
"multipart/form-data": {
1890-
/** @default */
1891-
repository?: string;
1892-
/** @default */
1893-
branch?: string;
1894-
[key: string]: undefined;
1908+
[key: string]: never;
18951909
};
18961910
};
18971911
};

0 commit comments

Comments
 (0)