Skip to content

Commit

Permalink
fix: remove "empty object" type from gists-update operation (#312)
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
octokitbot committed May 11, 2023
1 parent 2d8be2f commit f8c60c5
Show file tree
Hide file tree
Showing 21 changed files with 126 additions and 217 deletions.
30 changes: 11 additions & 19 deletions cache/api.github.com.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "11.1.1",
"version": "11.1.2",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -2206,26 +2206,18 @@
},
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
}
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
{
"type": "object",
"maxProperties": 0
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
]
}
}
}
},
Expand Down
30 changes: 11 additions & 19 deletions cache/ghec.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "11.1.1",
"version": "11.1.2",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -5211,26 +5211,18 @@
},
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
}
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
{
"type": "object",
"maxProperties": 0
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
]
}
}
}
},
Expand Down
30 changes: 11 additions & 19 deletions cache/ghes-3.5.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "11.1.1",
"version": "11.1.2",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -7680,26 +7680,18 @@
},
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
}
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
{
"type": "object",
"maxProperties": 0
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
]
}
}
}
},
Expand Down
30 changes: 11 additions & 19 deletions cache/ghes-3.6.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "11.1.1",
"version": "11.1.2",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -7782,26 +7782,18 @@
},
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
}
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
{
"type": "object",
"maxProperties": 0
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
]
}
}
}
},
Expand Down
30 changes: 11 additions & 19 deletions cache/ghes-3.7.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "11.1.1",
"version": "11.1.2",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -7941,26 +7941,18 @@
},
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
}
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
{
"type": "object",
"maxProperties": 0
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
]
}
}
}
},
Expand Down
30 changes: 11 additions & 19 deletions cache/ghes-3.8.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "11.1.1",
"version": "11.1.2",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -8738,26 +8738,18 @@
},
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
}
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
{
"type": "object",
"maxProperties": 0
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
]
}
}
}
},
Expand Down
30 changes: 11 additions & 19 deletions cache/github.ae.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "11.1.1",
"version": "11.1.2",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -5645,26 +5645,18 @@
},
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
}
"type": "object",
"properties": {
"content": {
"description": "The new content of the file.",
"type": "string"
},
{
"type": "object",
"maxProperties": 0
"filename": {
"description": "The new filename for the file.",
"type": "string",
"nullable": true
}
]
}
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-ghec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "11.1.1"
"openapi-version": "11.1.2"
}
}
17 changes: 6 additions & 11 deletions packages/openapi-types-ghec/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87273,17 +87273,12 @@ export interface operations {
*/
files?: {
[key: string]:
| OneOf<
[
{
/** @description The new content of the file. */
content?: string;
/** @description The new filename for the file. */
filename?: string | null;
},
Record<string, never>
]
>
| {
/** @description The new content of the file. */
content?: string;
/** @description The new filename for the file. */
filename?: string | null;
}
| undefined;
};
} | null;
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-ghes-3.5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "11.1.1"
"openapi-version": "11.1.2"
}
}
17 changes: 6 additions & 11 deletions packages/openapi-types-ghes-3.5/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22102,17 +22102,12 @@ export interface operations {
*/
files?: {
[key: string]:
| OneOf<
[
{
/** @description The new content of the file. */
content?: string;
/** @description The new filename for the file. */
filename?: string | null;
},
Record<string, never>
]
>
| {
/** @description The new content of the file. */
content?: string;
/** @description The new filename for the file. */
filename?: string | null;
}
| undefined;
};
} | null;
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-types-ghes-3.6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": {
"openapi-version": "11.1.1"
"openapi-version": "11.1.2"
}
}
Loading

0 comments on commit f8c60c5

Please sign in to comment.