Skip to content

Commit bb5f3d6

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

File tree

2 files changed

+124
-0
lines changed

2 files changed

+124
-0
lines changed

openapi.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2940,6 +2940,55 @@
29402940
}
29412941
}
29422942
},
2943+
{
2944+
"type": "object",
2945+
"additionalProperties": false,
2946+
"properties": {
2947+
"type": {
2948+
"type": "string",
2949+
"enum": [
2950+
"unpublished"
2951+
]
2952+
},
2953+
"value": {
2954+
"allOf": [
2955+
{
2956+
"$ref": "#/components/schemas/SocketIssueBasics"
2957+
},
2958+
{
2959+
"type": "object",
2960+
"additionalProperties": false,
2961+
"properties": {
2962+
"description": {
2963+
"type": "string",
2964+
"default": ""
2965+
},
2966+
"props": {
2967+
"type": "object",
2968+
"additionalProperties": false,
2969+
"properties": {
2970+
"version": {
2971+
"type": "string",
2972+
"default": ""
2973+
}
2974+
},
2975+
"required": [
2976+
"version"
2977+
]
2978+
},
2979+
"usage": {
2980+
"$ref": "#/components/schemas/SocketUsageRef"
2981+
}
2982+
},
2983+
"required": [
2984+
"description",
2985+
"props"
2986+
]
2987+
}
2988+
]
2989+
}
2990+
}
2991+
},
29432992
{
29442993
"type": "object",
29452994
"additionalProperties": false,
@@ -3864,6 +3913,55 @@
38643913
]
38653914
}
38663915
}
3916+
},
3917+
{
3918+
"type": "object",
3919+
"additionalProperties": false,
3920+
"properties": {
3921+
"type": {
3922+
"type": "string",
3923+
"enum": [
3924+
"gptMalware"
3925+
]
3926+
},
3927+
"value": {
3928+
"allOf": [
3929+
{
3930+
"$ref": "#/components/schemas/SocketIssueBasics"
3931+
},
3932+
{
3933+
"type": "object",
3934+
"additionalProperties": false,
3935+
"properties": {
3936+
"description": {
3937+
"type": "string",
3938+
"default": ""
3939+
},
3940+
"props": {
3941+
"type": "object",
3942+
"additionalProperties": false,
3943+
"properties": {
3944+
"notes": {
3945+
"type": "string",
3946+
"default": ""
3947+
}
3948+
},
3949+
"required": [
3950+
"notes"
3951+
]
3952+
},
3953+
"usage": {
3954+
"$ref": "#/components/schemas/SocketUsageRef"
3955+
}
3956+
},
3957+
"required": [
3958+
"description",
3959+
"props"
3960+
]
3961+
}
3962+
]
3963+
}
3964+
}
38673965
}
38683966
]
38693967
},

types/api.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,19 @@ export interface components {
787787
usage?: components["schemas"]["SocketUsageRef"];
788788
};
789789
}> &
790+
Partial<{
791+
/** @enum {string} */
792+
type?: "unpublished";
793+
value?: components["schemas"]["SocketIssueBasics"] & {
794+
/** @default */
795+
description: string;
796+
props: {
797+
/** @default */
798+
version: string;
799+
};
800+
usage?: components["schemas"]["SocketUsageRef"];
801+
};
802+
}> &
790803
Partial<{
791804
/** @enum {string} */
792805
type?: "majorRefactor";
@@ -1038,6 +1051,19 @@ export interface components {
10381051
};
10391052
usage?: components["schemas"]["SocketUsageRef"];
10401053
};
1054+
}> &
1055+
Partial<{
1056+
/** @enum {string} */
1057+
type?: "gptMalware";
1058+
value?: components["schemas"]["SocketIssueBasics"] & {
1059+
/** @default */
1060+
description: string;
1061+
props: {
1062+
/** @default */
1063+
notes: string;
1064+
};
1065+
usage?: components["schemas"]["SocketUsageRef"];
1066+
};
10411067
}>;
10421068
SocketSupplyChainScore: {
10431069
/** @default 0 */

0 commit comments

Comments
 (0)