Skip to content

Commit a0a9f01

Browse files
authored
Add suggested OpenAPI schemas (#3411)
Adds OpenAPI schemas after fixing API call paths in #3410.
1 parent 0ede657 commit a0a9f01

31 files changed

+97
-19
lines changed

github/AuthenticatedUser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ class AuthenticatedUser(CompletableGithubObject):
149149
This class represents AuthenticatedUsers as returned by https://docs.github.com/en/rest/reference/users#get-the-authenticated-user
150150
151151
An AuthenticatedUser object can be created by calling ``get_user()`` on a Github object.
152+
153+
The OpenAPI schema can be found at
154+
155+
- /components/schemas/private-user
156+
- /components/schemas/public-user
157+
152158
"""
153159

154160
def _initAttributes(self) -> None:

github/CodeScanAlert.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ class CodeScanAlert(NonCompletableGithubObject):
4848
The reference can be found here
4949
https://docs.github.com/en/rest/reference/code-scanning.
5050
51+
The OpenAPI schema can be found at
52+
53+
- /components/schemas/code-scanning-alert-items
54+
5155
"""
5256

5357
def _initAttributes(self) -> None:

github/CodeScanRule.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ class CodeScanRule(NonCompletableGithubObject):
5353
The reference can be found here
5454
https://docs.github.com/en/rest/reference/code-scanning.
5555
56+
The OpenAPI schema can be found at
57+
58+
- /components/schemas/code-scanning-alert-rule-summary
59+
5660
"""
5761

5862
def _initAttributes(self) -> None:

github/CodeScanTool.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class CodeScanTool(NonCompletableGithubObject):
5252
The reference can be found here
5353
https://docs.github.com/en/rest/reference/code-scanning.
5454
55+
The OpenAPI schema can be found at
56+
57+
- /components/schemas/code-scanning-analysis-tool
58+
5559
"""
5660

5761
def _initAttributes(self) -> None:

github/CommitCombinedStatus.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ class CommitCombinedStatus(NonCompletableGithubObject):
5555
The reference can be found here
5656
https://docs.github.com/en/rest/reference/repos#statuses
5757
58+
The OpenAPI schema can be found at
59+
60+
- /components/schemas/combined-commit-status
61+
5862
"""
5963

6064
def _initAttributes(self) -> None:

github/CommitComment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def create_reaction(self, reaction_type: str) -> Reaction:
209209
input=post_parameters,
210210
headers={"Accept": Consts.mediaTypeReactionsPreview},
211211
)
212-
return github.Reaction.Reaction(self._requester, headers, data, completed=True)
212+
return github.Reaction.Reaction(self._requester, headers, data)
213213

214214
def delete_reaction(self, reaction_id: int) -> bool:
215215
"""

github/CommitStatus.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class CommitStatus(NonCompletableGithubObject):
5959
6060
The OpenAPI schema can be found at
6161
62+
- /components/schemas/simple-commit-status
6263
- /components/schemas/status
6364
6465
"""

github/Comparison.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
class Comparison(CompletableGithubObject):
4949
"""
5050
This class represents Comparisons.
51+
52+
The OpenAPI schema can be found at
53+
54+
- /components/schemas/commit-comparison
55+
5156
"""
5257

5358
def _initAttributes(self) -> None:

github/Environment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ class Environment(CompletableGithubObject):
6868
The reference can be found here
6969
https://docs.github.com/en/rest/reference/deployments#environments
7070
71+
The OpenAPI schema can be found at
72+
73+
- /components/schemas/environment
74+
7175
"""
7276

7377
def _initAttributes(self) -> None:

github/EnvironmentDeploymentBranchPolicy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ class EnvironmentDeploymentBranchPolicy(NonCompletableGithubObject):
4040
The reference can be found here
4141
https://docs.github.com/en/rest/reference/deployments#environments
4242
43+
The OpenAPI schema can be found at
44+
45+
- /components/schemas/deployment-branch-policy-settings
46+
4347
"""
4448

4549
def _initAttributes(self) -> None:

0 commit comments

Comments
 (0)