Skip to content

Commit ffcfd94

Browse files
update client/openapi/trustd.yaml (#307)
Signed-off-by: GitHub <[email protected]> Co-authored-by: github-merge-queue[bot] <github-merge-queue[bot]@users.noreply.github.com>
1 parent 3d833a0 commit ffcfd94

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Diff for: client/openapi/trustd.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -3308,9 +3308,12 @@ components:
33083308
type: object
33093309
required:
33103310
- vulnerability
3311+
- average_severity
33113312
- status
33123313
- context
33133314
properties:
3315+
average_severity:
3316+
$ref: '#/components/schemas/Severity'
33143317
context:
33153318
oneOf:
33163319
- type: 'null'

Diff for: client/src/app/client/schemas.gen.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1783,8 +1783,11 @@ export const PurlLicenseSummarySchema = {
17831783

17841784
export const PurlStatusSchema = {
17851785
type: "object",
1786-
required: ["vulnerability", "status", "context"],
1786+
required: ["vulnerability", "average_severity", "status", "context"],
17871787
properties: {
1788+
average_severity: {
1789+
$ref: "#/components/schemas/Severity",
1790+
},
17881791
context: {
17891792
oneOf: [
17901793
{

Diff for: client/src/app/client/types.gen.ts

+1
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ export type PurlLicenseSummary = {
654654
};
655655

656656
export type PurlStatus = {
657+
average_severity: Severity;
657658
context: null | StatusContext;
658659
status: string;
659660
vulnerability: VulnerabilityHead;

0 commit comments

Comments
 (0)