Skip to content

Commit 34dc840

Browse files
github-actions[bot]voxpelli
authored andcommitted
fix(openapi): sync with openapi definition
1 parent c96b6f4 commit 34dc840

File tree

2 files changed

+83
-83
lines changed

2 files changed

+83
-83
lines changed

openapi.json

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,70 +1533,6 @@
15331533
}
15341534
}
15351535
},
1536-
{
1537-
"type": "object",
1538-
"additionalProperties": false,
1539-
"properties": {
1540-
"type": {
1541-
"type": "string",
1542-
"enum": [
1543-
"didYouMean"
1544-
]
1545-
},
1546-
"value": {
1547-
"allOf": [
1548-
{
1549-
"$ref": "#/components/schemas/SocketIssueBasics"
1550-
},
1551-
{
1552-
"type": "object",
1553-
"additionalProperties": false,
1554-
"properties": {
1555-
"description": {
1556-
"type": "string",
1557-
"default": ""
1558-
},
1559-
"props": {
1560-
"type": "object",
1561-
"additionalProperties": false,
1562-
"properties": {
1563-
"alternatePackage": {
1564-
"type": "string",
1565-
"default": ""
1566-
},
1567-
"editDistance": {
1568-
"type": "integer",
1569-
"default": 0
1570-
},
1571-
"downloads": {
1572-
"type": "integer",
1573-
"default": 0
1574-
},
1575-
"downloadsRatio": {
1576-
"type": "number",
1577-
"default": 1
1578-
}
1579-
},
1580-
"required": [
1581-
"alternatePackage",
1582-
"downloads",
1583-
"downloadsRatio",
1584-
"editDistance"
1585-
]
1586-
},
1587-
"usage": {
1588-
"$ref": "#/components/schemas/SocketUsageRef"
1589-
}
1590-
},
1591-
"required": [
1592-
"description",
1593-
"props"
1594-
]
1595-
}
1596-
]
1597-
}
1598-
}
1599-
},
16001536
{
16011537
"type": "object",
16021538
"additionalProperties": false,
@@ -3703,6 +3639,70 @@
37033639
}
37043640
}
37053641
},
3642+
{
3643+
"type": "object",
3644+
"additionalProperties": false,
3645+
"properties": {
3646+
"type": {
3647+
"type": "string",
3648+
"enum": [
3649+
"didYouMean"
3650+
]
3651+
},
3652+
"value": {
3653+
"allOf": [
3654+
{
3655+
"$ref": "#/components/schemas/SocketIssueBasics"
3656+
},
3657+
{
3658+
"type": "object",
3659+
"additionalProperties": false,
3660+
"properties": {
3661+
"description": {
3662+
"type": "string",
3663+
"default": ""
3664+
},
3665+
"props": {
3666+
"type": "object",
3667+
"additionalProperties": false,
3668+
"properties": {
3669+
"alternatePackage": {
3670+
"type": "string",
3671+
"default": ""
3672+
},
3673+
"editDistance": {
3674+
"type": "integer",
3675+
"default": 0
3676+
},
3677+
"downloads": {
3678+
"type": "integer",
3679+
"default": 0
3680+
},
3681+
"downloadsRatio": {
3682+
"type": "number",
3683+
"default": 1
3684+
}
3685+
},
3686+
"required": [
3687+
"alternatePackage",
3688+
"downloads",
3689+
"downloadsRatio",
3690+
"editDistance"
3691+
]
3692+
},
3693+
"usage": {
3694+
"$ref": "#/components/schemas/SocketUsageRef"
3695+
}
3696+
},
3697+
"required": [
3698+
"description",
3699+
"props"
3700+
]
3701+
}
3702+
]
3703+
}
3704+
}
3705+
},
37063706
{
37073707
"type": "object",
37083708
"additionalProperties": false,

types/api.d.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -414,25 +414,6 @@ export interface components {
414414
usage?: components["schemas"]["SocketUsageRef"];
415415
};
416416
}> &
417-
Partial<{
418-
/** @enum {string} */
419-
type?: "didYouMean";
420-
value?: components["schemas"]["SocketIssueBasics"] & {
421-
/** @default */
422-
description: string;
423-
props: {
424-
/** @default */
425-
alternatePackage: string;
426-
/** @default 0 */
427-
editDistance: number;
428-
/** @default 0 */
429-
downloads: number;
430-
/** @default 1 */
431-
downloadsRatio: number;
432-
};
433-
usage?: components["schemas"]["SocketUsageRef"];
434-
};
435-
}> &
436417
Partial<{
437418
/** @enum {string} */
438419
type?: "bidi";
@@ -989,6 +970,25 @@ export interface components {
989970
usage?: components["schemas"]["SocketUsageRef"];
990971
};
991972
}> &
973+
Partial<{
974+
/** @enum {string} */
975+
type?: "didYouMean";
976+
value?: components["schemas"]["SocketIssueBasics"] & {
977+
/** @default */
978+
description: string;
979+
props: {
980+
/** @default */
981+
alternatePackage: string;
982+
/** @default 0 */
983+
editDistance: number;
984+
/** @default 0 */
985+
downloads: number;
986+
/** @default 1 */
987+
downloadsRatio: number;
988+
};
989+
usage?: components["schemas"]["SocketUsageRef"];
990+
};
991+
}> &
992992
Partial<{
993993
/** @enum {string} */
994994
type?: "malware";

0 commit comments

Comments
 (0)