Skip to content

Commit 39f3686

Browse files
authored
fix: GET /search/labels & GET /search/topics pagination query parameters (#105)
1 parent 6ff0df9 commit 39f3686

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

cache/openapi-schema.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "2.22.3",
4+
"version": "2.22.4",
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" },
@@ -32709,7 +32709,9 @@
3270932709
"required": false,
3271032710
"schema": { "type": "string", "enum": ["created", "updated"] }
3271132711
},
32712-
{ "$ref": "#/components/parameters/order" }
32712+
{ "$ref": "#/components/parameters/order" },
32713+
{ "$ref": "#/components/parameters/per_page" },
32714+
{ "$ref": "#/components/parameters/page" }
3271332715
],
3271432716
"responses": {
3271532717
"200": {
@@ -32849,7 +32851,9 @@
3284932851
"in": "query",
3285032852
"required": true,
3285132853
"schema": { "type": "string" }
32852-
}
32854+
},
32855+
{ "$ref": "#/components/parameters/per_page" },
32856+
{ "$ref": "#/components/parameters/page" }
3285332857
],
3285432858
"responses": {
3285532859
"200": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
]
5454
},
5555
"octokit": {
56-
"openapi-version": "2.22.3"
56+
"openapi-version": "2.22.4"
5757
},
5858
"@pika/pack": {
5959
"pipeline": [

src/generated/types.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29027,6 +29027,10 @@ export interface operations {
2902729027
sort?: "created" | "updated";
2902829028
/** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. */
2902929029
order?: components["parameters"]["order"];
29030+
/** Results per page (max 100). */
29031+
per_page?: components["parameters"]["per_page"];
29032+
/** Page number of the results to fetch. */
29033+
page?: components["parameters"]["page"];
2903029034
};
2903129035
};
2903229036
responses: {
@@ -29108,6 +29112,10 @@ export interface operations {
2910829112
query: {
2910929113
/** The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/reference/search#constructing-a-search-query). */
2911029114
q: string;
29115+
/** Results per page (max 100). */
29116+
per_page?: components["parameters"]["per_page"];
29117+
/** Page number of the results to fetch. */
29118+
page?: components["parameters"]["page"];
2911129119
};
2911229120
};
2911329121
responses: {

0 commit comments

Comments
 (0)