Skip to content

Commit 02fa482

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

File tree

2 files changed

+50
-8
lines changed

2 files changed

+50
-8
lines changed

openapi.json

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4488,14 +4488,15 @@
44884488
"$ref": "#/components/schemas/SocketRefList"
44894489
},
44904490
"label": {
4491-
"type": "string"
4491+
"type": "string",
4492+
"default": ""
44924493
}
44934494
},
44944495
"required": [
44954496
"category",
4497+
"label",
44964498
"locations",
4497-
"severity",
4498-
"label"
4499+
"severity"
44994500
]
45004501
},
45014502
"SocketUsageRef": {
@@ -4865,8 +4866,7 @@
48654866
"in": "path",
48664867
"required": true,
48674868
"schema": {
4868-
"type": "string",
4869-
"pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$"
4869+
"type": "string"
48704870
}
48714871
}
48724872
],
@@ -4927,8 +4927,7 @@
49274927
"in": "path",
49284928
"required": true,
49294929
"schema": {
4930-
"type": "string",
4931-
"pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$"
4930+
"type": "string"
49324931
}
49334932
}
49344933
],
@@ -5065,10 +5064,40 @@
50655064
"url": {
50665065
"type": "string",
50675066
"default": ""
5067+
},
5068+
"repo": {
5069+
"type": "string",
5070+
"default": ""
5071+
},
5072+
"branch": {
5073+
"type": "string",
5074+
"default": ""
5075+
},
5076+
"pull_requests": {
5077+
"type": "object",
5078+
"default": null
5079+
},
5080+
"commit": {
5081+
"type": "string",
5082+
"default": ""
5083+
},
5084+
"owner": {
5085+
"type": "string",
5086+
"default": ""
5087+
},
5088+
"created_at": {
5089+
"type": "string",
5090+
"default": ""
50685091
}
50695092
},
50705093
"required": [
5094+
"branch",
5095+
"commit",
5096+
"created_at",
50715097
"id",
5098+
"owner",
5099+
"pull_requests",
5100+
"repo",
50725101
"url"
50735102
]
50745103
}
@@ -5906,4 +5935,4 @@
59065935
}
59075936
}
59085937
}
5909-
}
5938+
}

types/api.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,7 @@ export interface components {
12321232
severity: components["schemas"]["SocketIssueSeverity"];
12331233
category: components["schemas"]["SocketCategory"];
12341234
locations: components["schemas"]["SocketRefList"];
1235+
/** @default */
12351236
label: string;
12361237
};
12371238
SocketUsageRef: {
@@ -1532,6 +1533,18 @@ export interface operations {
15321533
id: string;
15331534
/** @default */
15341535
url: string;
1536+
/** @default */
1537+
repo: string;
1538+
/** @default */
1539+
branch: string;
1540+
/** @default null */
1541+
pull_requests: Record<string, never>;
1542+
/** @default */
1543+
commit: string;
1544+
/** @default */
1545+
owner: string;
1546+
/** @default */
1547+
created_at: string;
15351548
})[];
15361549
};
15371550
};

0 commit comments

Comments
 (0)