Skip to content

Commit

Permalink
fix: add override for bad usage of anyOf (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored May 5, 2023
1 parent 0095309 commit b6f1340
Show file tree
Hide file tree
Showing 31 changed files with 6,916 additions and 22,369 deletions.
64 changes: 16 additions & 48 deletions generated/api.github.com.deref.json
Original file line number Diff line number Diff line change
Expand Up @@ -22858,6 +22858,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"description": {
"description": "The description of the gist.",
Expand All @@ -22874,29 +22875,21 @@
},
"type": "object",
"additionalProperties": {
"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
}
},
"anyOf": [
{
"required": [
"content"
]
},
"oneOf": [
{
"required": [
"filename"
]
"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",
Expand All @@ -22906,19 +22899,6 @@
}
}
},
"anyOf": [
{
"required": [
"description"
]
},
{
"required": [
"files"
]
}
],
"type": "object",
"nullable": true
},
"examples": {
Expand Down Expand Up @@ -343224,19 +343204,7 @@
"type": "string"
}
}
},
"anyOf": [
{
"required": [
"reviewers"
]
},
{
"required": [
"team_reviewers"
]
}
]
}
},
"examples": {
"default": {
Expand Down
63 changes: 15 additions & 48 deletions generated/api.github.com.json
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"description": {
"description": "The description of the gist.",
Expand All @@ -2205,29 +2206,20 @@
},
"type": "object",
"additionalProperties": {
"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
}
},
"anyOf": [
{
"required": [
"content"
]
},
"oneOf": [
{
"required": [
"filename"
]
"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",
Expand All @@ -2237,19 +2229,6 @@
}
}
},
"anyOf": [
{
"required": [
"description"
]
},
{
"required": [
"files"
]
}
],
"type": "object",
"nullable": true
},
"examples": {
Expand Down Expand Up @@ -44086,19 +44065,7 @@
"type": "string"
}
}
},
"anyOf": [
{
"required": [
"reviewers"
]
},
{
"required": [
"team_reviewers"
]
}
]
}
},
"examples": {
"default": {
Expand Down
70 changes: 19 additions & 51 deletions generated/ghec.deref.json
Original file line number Diff line number Diff line change
Expand Up @@ -32849,7 +32849,7 @@
"operationId": "gists/update",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/gists/#update-a-gist"
"url": "https://docs.github.com/rest/reference/gists/#update-a-gist"
},
"parameters": [
{
Expand All @@ -32867,6 +32867,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"description": {
"description": "The description of the gist.",
Expand All @@ -32883,29 +32884,21 @@
},
"type": "object",
"additionalProperties": {
"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
}
},
"anyOf": [
{
"required": [
"content"
]
},
"oneOf": [
{
"required": [
"filename"
]
"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",
Expand All @@ -32915,19 +32908,6 @@
}
}
},
"anyOf": [
{
"required": [
"description"
]
},
{
"required": [
"files"
]
}
],
"type": "object",
"nullable": true
},
"examples": {
Expand Down Expand Up @@ -360893,14 +360873,14 @@
},
"post": {
"summary": "Request reviewers for a pull request",
"description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-cloud@latest//rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.",
"description": "This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.",
"tags": [
"pulls"
],
"operationId": "pulls/request-reviewers",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/pulls#request-reviewers-for-a-pull-request"
"url": "https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request"
},
"parameters": [
{
Expand Down Expand Up @@ -360952,19 +360932,7 @@
"type": "string"
}
}
},
"anyOf": [
{
"required": [
"reviewers"
]
},
{
"required": [
"team_reviewers"
]
}
]
}
},
"examples": {
"default": {
Expand Down
Loading

0 comments on commit b6f1340

Please sign in to comment.