Skip to content

Commit 7856c62

Browse files
authored
fix: POST /repos/{owner}/{repo}/releases/{release_id}/assets: name query parameter is required. head.repo is nullable in pull-request schema (#129)
1 parent 7feec4b commit 7856c62

File tree

15 files changed

+55
-25
lines changed

15 files changed

+55
-25
lines changed

cache/api.github.com.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "3.1.1",
4+
"version": "3.1.2",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -29744,7 +29744,12 @@
2974429744
{ "$ref": "#/components/parameters/owner" },
2974529745
{ "$ref": "#/components/parameters/repo" },
2974629746
{ "$ref": "#/components/parameters/release-id" },
29747-
{ "name": "name", "in": "query", "schema": { "type": "string" } },
29747+
{
29748+
"name": "name",
29749+
"in": "query",
29750+
"required": true,
29751+
"schema": { "type": "string" }
29752+
},
2974829753
{ "name": "label", "in": "query", "schema": { "type": "string" } }
2974929754
],
2975029755
"requestBody": {
@@ -51682,6 +51687,7 @@
5168251687
"ref": { "type": "string" },
5168351688
"repo": {
5168451689
"type": "object",
51690+
"nullable": true,
5168551691
"properties": {
5168651692
"archive_url": { "type": "string" },
5168751693
"assignees_url": { "type": "string" },

cache/ghes-2.22.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "3.1.1",
4+
"version": "3.1.2",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -27421,7 +27421,12 @@
2742127421
{ "$ref": "#/components/parameters/owner" },
2742227422
{ "$ref": "#/components/parameters/repo" },
2742327423
{ "$ref": "#/components/parameters/release-id" },
27424-
{ "name": "name", "in": "query", "schema": { "type": "string" } },
27424+
{
27425+
"name": "name",
27426+
"in": "query",
27427+
"required": true,
27428+
"schema": { "type": "string" }
27429+
},
2742527430
{ "name": "label", "in": "query", "schema": { "type": "string" } }
2742627431
],
2742727432
"requestBody": {
@@ -45779,6 +45784,7 @@
4577945784
"ref": { "type": "string" },
4578045785
"repo": {
4578145786
"type": "object",
45787+
"nullable": true,
4578245788
"properties": {
4578345789
"archive_url": { "type": "string" },
4578445790
"assignees_url": { "type": "string" },

cache/ghes-3.0.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "3.1.1",
4+
"version": "3.1.2",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -28581,7 +28581,12 @@
2858128581
{ "$ref": "#/components/parameters/owner" },
2858228582
{ "$ref": "#/components/parameters/repo" },
2858328583
{ "$ref": "#/components/parameters/release-id" },
28584-
{ "name": "name", "in": "query", "schema": { "type": "string" } },
28584+
{
28585+
"name": "name",
28586+
"in": "query",
28587+
"required": true,
28588+
"schema": { "type": "string" }
28589+
},
2858528590
{ "name": "label", "in": "query", "schema": { "type": "string" } }
2858628591
],
2858728592
"requestBody": {
@@ -47106,6 +47111,7 @@
4710647111
"ref": { "type": "string" },
4710747112
"repo": {
4710847113
"type": "object",
47114+
"nullable": true,
4710947115
"properties": {
4711047116
"archive_url": { "type": "string" },
4711147117
"assignees_url": { "type": "string" },

cache/ghes-3.1.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "3.1.1",
4+
"version": "3.1.2",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -28915,7 +28915,12 @@
2891528915
{ "$ref": "#/components/parameters/owner" },
2891628916
{ "$ref": "#/components/parameters/repo" },
2891728917
{ "$ref": "#/components/parameters/release-id" },
28918-
{ "name": "name", "in": "query", "schema": { "type": "string" } },
28918+
{
28919+
"name": "name",
28920+
"in": "query",
28921+
"required": true,
28922+
"schema": { "type": "string" }
28923+
},
2891928924
{ "name": "label", "in": "query", "schema": { "type": "string" } }
2892028925
],
2892128926
"requestBody": {
@@ -47746,6 +47751,7 @@
4774647751
"ref": { "type": "string" },
4774747752
"repo": {
4774847753
"type": "object",
47754+
"nullable": true,
4774947755
"properties": {
4775047756
"archive_url": { "type": "string" },
4775147757
"assignees_url": { "type": "string" },

cache/github.ae.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "3.1.1",
4+
"version": "3.1.2",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -26086,7 +26086,12 @@
2608626086
{ "$ref": "#/components/parameters/owner" },
2608726087
{ "$ref": "#/components/parameters/repo" },
2608826088
{ "$ref": "#/components/parameters/release-id" },
26089-
{ "name": "name", "in": "query", "schema": { "type": "string" } },
26089+
{
26090+
"name": "name",
26091+
"in": "query",
26092+
"required": true,
26093+
"schema": { "type": "string" }
26094+
},
2609026095
{ "name": "label", "in": "query", "schema": { "type": "string" } }
2609126096
],
2609226097
"requestBody": {
@@ -44235,6 +44240,7 @@
4423544240
"ref": { "type": "string" },
4423644241
"repo": {
4423744242
"type": "object",
44243+
"nullable": true,
4423844244
"properties": {
4423944245
"archive_url": { "type": "string" },
4424044246
"assignees_url": { "type": "string" },

packages/openapi-types-ghes-2.22/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "3.1.1" }
15+
"octokit": { "openapi-version": "3.1.2" }
1616
}

packages/openapi-types-ghes-2.22/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8156,7 +8156,7 @@ export interface components {
81568156
watchers_count: number;
81578157
created_at: string;
81588158
updated_at: string;
8159-
};
8159+
} | null;
81608160
sha: string;
81618161
user: {
81628162
avatar_url: string;
@@ -23710,7 +23710,7 @@ export interface operations {
2371023710
release_id: components["parameters"]["release-id"];
2371123711
};
2371223712
query: {
23713-
name?: string;
23713+
name: string;
2371423714
label?: string;
2371523715
};
2371623716
};

packages/openapi-types-ghes-3.0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "3.1.1" }
15+
"octokit": { "openapi-version": "3.1.2" }
1616
}

packages/openapi-types-ghes-3.0/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8445,7 +8445,7 @@ export interface components {
84458445
watchers_count: number;
84468446
created_at: string;
84478447
updated_at: string;
8448-
};
8448+
} | null;
84498449
sha: string;
84508450
user: {
84518451
avatar_url: string;
@@ -24734,7 +24734,7 @@ export interface operations {
2473424734
release_id: components["parameters"]["release-id"];
2473524735
};
2473624736
query: {
24737-
name?: string;
24737+
name: string;
2473824738
label?: string;
2473924739
};
2474024740
};

packages/openapi-types-ghes-3.1/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "3.1.1" }
15+
"octokit": { "openapi-version": "3.1.2" }
1616
}

0 commit comments

Comments
 (0)