Skip to content

Commit d7e51e9

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

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed

openapi.json

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4599,6 +4599,55 @@
45994599
}
46004600
}
46014601
},
4602+
{
4603+
"type": "object",
4604+
"additionalProperties": false,
4605+
"properties": {
4606+
"type": {
4607+
"type": "string",
4608+
"enum": [
4609+
"ambiguousClassifier"
4610+
]
4611+
},
4612+
"value": {
4613+
"allOf": [
4614+
{
4615+
"$ref": "#/components/schemas/SocketIssueBasics"
4616+
},
4617+
{
4618+
"type": "object",
4619+
"additionalProperties": false,
4620+
"properties": {
4621+
"description": {
4622+
"type": "string",
4623+
"default": ""
4624+
},
4625+
"props": {
4626+
"type": "object",
4627+
"additionalProperties": false,
4628+
"properties": {
4629+
"classifier": {
4630+
"type": "string",
4631+
"default": ""
4632+
}
4633+
},
4634+
"required": [
4635+
"classifier"
4636+
]
4637+
},
4638+
"usage": {
4639+
"$ref": "#/components/schemas/SocketUsageRef"
4640+
}
4641+
},
4642+
"required": [
4643+
"description",
4644+
"props"
4645+
]
4646+
}
4647+
]
4648+
}
4649+
}
4650+
},
46024651
{
46034652
"type": "object",
46044653
"additionalProperties": false,
@@ -6469,7 +6518,6 @@
64696518
"/dependencies/upload": {
64706519
"post": {
64716520
"tags": [
6472-
"Upload",
64736521
"Dependencies"
64746522
],
64756523
"summary": "Create a snapshot of all dependencies from manifest information",
@@ -6801,7 +6849,7 @@
68016849
"/orgs/{org_slug}/repos/{repo_slug}": {
68026850
"get": {
68036851
"tags": [
6804-
"Repositories)"
6852+
"Repositories"
68056853
],
68066854
"summary": "Get repository (unstable)",
68076855
"operationId": "getOrgRepo",

types/api.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,18 @@ export interface components {
13591359
};
13601360
usage?: components["schemas"]["SocketUsageRef"];
13611361
};
1362+
}) | ({
1363+
/** @enum {string} */
1364+
type?: "ambiguousClassifier";
1365+
value?: components["schemas"]["SocketIssueBasics"] & {
1366+
/** @default */
1367+
description: string;
1368+
props: {
1369+
/** @default */
1370+
classifier: string;
1371+
};
1372+
usage?: components["schemas"]["SocketUsageRef"];
1373+
};
13621374
}) | ({
13631375
/** @enum {string} */
13641376
type?: "didYouMean";

0 commit comments

Comments
 (0)