GitHubKit 0.11.12__py3-none-any.whl → 0.11.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of GitHubKit might be problematic. Click here for more details.

Files changed (78) hide show
  1. githubkit/config.py +3 -0
  2. githubkit/core.py +5 -0
  3. githubkit/github.py +3 -0
  4. githubkit/versions/ghec_v2022_11_28/models/group_0051.py +5 -1
  5. githubkit/versions/ghec_v2022_11_28/models/group_0088.py +0 -1
  6. githubkit/versions/ghec_v2022_11_28/models/group_0098.py +4 -0
  7. githubkit/versions/ghec_v2022_11_28/models/group_1010.py +3 -1
  8. githubkit/versions/ghec_v2022_11_28/rest/actions.py +652 -472
  9. githubkit/versions/ghec_v2022_11_28/rest/activity.py +60 -44
  10. githubkit/versions/ghec_v2022_11_28/rest/apps.py +102 -74
  11. githubkit/versions/ghec_v2022_11_28/rest/billing.py +40 -32
  12. githubkit/versions/ghec_v2022_11_28/rest/checks.py +83 -66
  13. githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py +74 -58
  14. githubkit/versions/ghec_v2022_11_28/rest/code_security.py +86 -66
  15. githubkit/versions/ghec_v2022_11_28/rest/codespaces.py +218 -154
  16. githubkit/versions/ghec_v2022_11_28/rest/copilot.py +72 -40
  17. githubkit/versions/ghec_v2022_11_28/rest/dependabot.py +68 -52
  18. githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py +14 -10
  19. githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +278 -208
  20. githubkit/versions/ghec_v2022_11_28/rest/gists.py +56 -40
  21. githubkit/versions/ghec_v2022_11_28/rest/git.py +84 -60
  22. githubkit/versions/ghec_v2022_11_28/rest/interactions.py +42 -30
  23. githubkit/versions/ghec_v2022_11_28/rest/issues.py +250 -198
  24. githubkit/versions/ghec_v2022_11_28/rest/markdown.py +34 -26
  25. githubkit/versions/ghec_v2022_11_28/rest/migrations.py +92 -60
  26. githubkit/versions/ghec_v2022_11_28/rest/oidc.py +14 -10
  27. githubkit/versions/ghec_v2022_11_28/rest/orgs.py +362 -246
  28. githubkit/versions/ghec_v2022_11_28/rest/projects.py +170 -126
  29. githubkit/versions/ghec_v2022_11_28/rest/pulls.py +234 -170
  30. githubkit/versions/ghec_v2022_11_28/rest/reactions.py +166 -130
  31. githubkit/versions/ghec_v2022_11_28/rest/repos.py +1035 -800
  32. githubkit/versions/ghec_v2022_11_28/rest/scim.py +50 -34
  33. githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py +36 -28
  34. githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py +42 -30
  35. githubkit/versions/ghec_v2022_11_28/rest/teams.py +324 -238
  36. githubkit/versions/ghec_v2022_11_28/rest/users.py +154 -118
  37. githubkit/versions/ghec_v2022_11_28/types/group_0051.py +2 -1
  38. githubkit/versions/ghec_v2022_11_28/types/group_0088.py +0 -1
  39. githubkit/versions/ghec_v2022_11_28/types/group_0098.py +1 -0
  40. githubkit/versions/ghec_v2022_11_28/types/group_1010.py +3 -1
  41. githubkit/versions/v2022_11_28/models/group_0030.py +5 -1
  42. githubkit/versions/v2022_11_28/models/group_0060.py +0 -1
  43. githubkit/versions/v2022_11_28/models/group_0082.py +4 -0
  44. githubkit/versions/v2022_11_28/models/group_0936.py +3 -1
  45. githubkit/versions/v2022_11_28/rest/actions.py +534 -386
  46. githubkit/versions/v2022_11_28/rest/activity.py +60 -44
  47. githubkit/versions/v2022_11_28/rest/apps.py +102 -74
  48. githubkit/versions/v2022_11_28/rest/checks.py +83 -66
  49. githubkit/versions/v2022_11_28/rest/code_scanning.py +74 -58
  50. githubkit/versions/v2022_11_28/rest/code_security.py +86 -66
  51. githubkit/versions/v2022_11_28/rest/codespaces.py +218 -154
  52. githubkit/versions/v2022_11_28/rest/copilot.py +72 -40
  53. githubkit/versions/v2022_11_28/rest/dependabot.py +68 -52
  54. githubkit/versions/v2022_11_28/rest/dependency_graph.py +14 -10
  55. githubkit/versions/v2022_11_28/rest/gists.py +56 -40
  56. githubkit/versions/v2022_11_28/rest/git.py +84 -60
  57. githubkit/versions/v2022_11_28/rest/interactions.py +42 -30
  58. githubkit/versions/v2022_11_28/rest/issues.py +250 -198
  59. githubkit/versions/v2022_11_28/rest/markdown.py +34 -26
  60. githubkit/versions/v2022_11_28/rest/migrations.py +92 -60
  61. githubkit/versions/v2022_11_28/rest/oidc.py +14 -10
  62. githubkit/versions/v2022_11_28/rest/orgs.py +240 -168
  63. githubkit/versions/v2022_11_28/rest/projects.py +170 -126
  64. githubkit/versions/v2022_11_28/rest/pulls.py +234 -170
  65. githubkit/versions/v2022_11_28/rest/reactions.py +166 -130
  66. githubkit/versions/v2022_11_28/rest/repos.py +1035 -800
  67. githubkit/versions/v2022_11_28/rest/secret_scanning.py +36 -28
  68. githubkit/versions/v2022_11_28/rest/security_advisories.py +42 -30
  69. githubkit/versions/v2022_11_28/rest/teams.py +274 -204
  70. githubkit/versions/v2022_11_28/rest/users.py +154 -118
  71. githubkit/versions/v2022_11_28/types/group_0030.py +2 -1
  72. githubkit/versions/v2022_11_28/types/group_0060.py +0 -1
  73. githubkit/versions/v2022_11_28/types/group_0082.py +1 -0
  74. githubkit/versions/v2022_11_28/types/group_0936.py +3 -1
  75. {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/METADATA +3 -2
  76. {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/RECORD +78 -78
  77. {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/WHEEL +1 -1
  78. {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/LICENSE +0 -0
@@ -376,13 +376,15 @@ class TeamsClient:
376
376
 
377
377
  url = f"/orgs/{org}/teams"
378
378
 
379
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
380
-
381
- if not kwargs:
382
- kwargs = UNSET
379
+ headers = {
380
+ "Content-Type": "application/json",
381
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
382
+ **(headers or {}),
383
+ }
383
384
 
384
385
  json = kwargs if data is UNSET else data
385
- json = type_validate_python(OrgsOrgTeamsPostBody, json)
386
+ if self._github.config.rest_api_validate_body:
387
+ json = type_validate_python(OrgsOrgTeamsPostBody, json)
386
388
  json = model_dump(json) if isinstance(json, BaseModel) else json
387
389
 
388
390
  return self._github.request(
@@ -439,13 +441,15 @@ class TeamsClient:
439
441
 
440
442
  url = f"/orgs/{org}/teams"
441
443
 
442
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
443
-
444
- if not kwargs:
445
- kwargs = UNSET
444
+ headers = {
445
+ "Content-Type": "application/json",
446
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
447
+ **(headers or {}),
448
+ }
446
449
 
447
450
  json = kwargs if data is UNSET else data
448
- json = type_validate_python(OrgsOrgTeamsPostBody, json)
451
+ if self._github.config.rest_api_validate_body:
452
+ json = type_validate_python(OrgsOrgTeamsPostBody, json)
449
453
  json = model_dump(json) if isinstance(json, BaseModel) else json
450
454
 
451
455
  return await self._github.arequest(
@@ -596,13 +600,15 @@ class TeamsClient:
596
600
 
597
601
  url = f"/orgs/{org}/teams/{team_slug}"
598
602
 
599
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
600
-
601
- if not kwargs:
602
- kwargs = UNSET
603
+ headers = {
604
+ "Content-Type": "application/json",
605
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
606
+ **(headers or {}),
607
+ }
603
608
 
604
609
  json = kwargs if data is UNSET else data
605
- json = type_validate_python(OrgsOrgTeamsTeamSlugPatchBody, json)
610
+ if self._github.config.rest_api_validate_body:
611
+ json = type_validate_python(OrgsOrgTeamsTeamSlugPatchBody, json)
606
612
  json = model_dump(json) if isinstance(json, BaseModel) else json
607
613
 
608
614
  return self._github.request(
@@ -666,13 +672,15 @@ class TeamsClient:
666
672
 
667
673
  url = f"/orgs/{org}/teams/{team_slug}"
668
674
 
669
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
670
-
671
- if not kwargs:
672
- kwargs = UNSET
675
+ headers = {
676
+ "Content-Type": "application/json",
677
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
678
+ **(headers or {}),
679
+ }
673
680
 
674
681
  json = kwargs if data is UNSET else data
675
- json = type_validate_python(OrgsOrgTeamsTeamSlugPatchBody, json)
682
+ if self._github.config.rest_api_validate_body:
683
+ json = type_validate_python(OrgsOrgTeamsTeamSlugPatchBody, json)
676
684
  json = model_dump(json) if isinstance(json, BaseModel) else json
677
685
 
678
686
  return await self._github.arequest(
@@ -798,13 +806,15 @@ class TeamsClient:
798
806
 
799
807
  url = f"/orgs/{org}/teams/{team_slug}/discussions"
800
808
 
801
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
802
-
803
- if not kwargs:
804
- kwargs = UNSET
809
+ headers = {
810
+ "Content-Type": "application/json",
811
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
812
+ **(headers or {}),
813
+ }
805
814
 
806
815
  json = kwargs if data is UNSET else data
807
- json = type_validate_python(OrgsOrgTeamsTeamSlugDiscussionsPostBody, json)
816
+ if self._github.config.rest_api_validate_body:
817
+ json = type_validate_python(OrgsOrgTeamsTeamSlugDiscussionsPostBody, json)
808
818
  json = model_dump(json) if isinstance(json, BaseModel) else json
809
819
 
810
820
  return self._github.request(
@@ -853,13 +863,15 @@ class TeamsClient:
853
863
 
854
864
  url = f"/orgs/{org}/teams/{team_slug}/discussions"
855
865
 
856
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
857
-
858
- if not kwargs:
859
- kwargs = UNSET
866
+ headers = {
867
+ "Content-Type": "application/json",
868
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
869
+ **(headers or {}),
870
+ }
860
871
 
861
872
  json = kwargs if data is UNSET else data
862
- json = type_validate_python(OrgsOrgTeamsTeamSlugDiscussionsPostBody, json)
873
+ if self._github.config.rest_api_validate_body:
874
+ json = type_validate_python(OrgsOrgTeamsTeamSlugDiscussionsPostBody, json)
863
875
  json = model_dump(json) if isinstance(json, BaseModel) else json
864
876
 
865
877
  return await self._github.arequest(
@@ -1003,15 +1015,17 @@ class TeamsClient:
1003
1015
 
1004
1016
  url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
1005
1017
 
1006
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1007
-
1008
- if not kwargs:
1009
- kwargs = UNSET
1018
+ headers = {
1019
+ "Content-Type": "application/json",
1020
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1021
+ **(headers or {}),
1022
+ }
1010
1023
 
1011
1024
  json = kwargs if data is UNSET else data
1012
- json = type_validate_python(
1013
- OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, json
1014
- )
1025
+ if self._github.config.rest_api_validate_body:
1026
+ json = type_validate_python(
1027
+ OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, json
1028
+ )
1015
1029
  json = model_dump(json) if isinstance(json, BaseModel) else json
1016
1030
 
1017
1031
  return self._github.request(
@@ -1069,15 +1083,17 @@ class TeamsClient:
1069
1083
 
1070
1084
  url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
1071
1085
 
1072
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1073
-
1074
- if not kwargs:
1075
- kwargs = UNSET
1086
+ headers = {
1087
+ "Content-Type": "application/json",
1088
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1089
+ **(headers or {}),
1090
+ }
1076
1091
 
1077
1092
  json = kwargs if data is UNSET else data
1078
- json = type_validate_python(
1079
- OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, json
1080
- )
1093
+ if self._github.config.rest_api_validate_body:
1094
+ json = type_validate_python(
1095
+ OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, json
1096
+ )
1081
1097
  json = model_dump(json) if isinstance(json, BaseModel) else json
1082
1098
 
1083
1099
  return await self._github.arequest(
@@ -1202,15 +1218,17 @@ class TeamsClient:
1202
1218
 
1203
1219
  url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
1204
1220
 
1205
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1206
-
1207
- if not kwargs:
1208
- kwargs = UNSET
1221
+ headers = {
1222
+ "Content-Type": "application/json",
1223
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1224
+ **(headers or {}),
1225
+ }
1209
1226
 
1210
1227
  json = kwargs if data is UNSET else data
1211
- json = type_validate_python(
1212
- OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, json
1213
- )
1228
+ if self._github.config.rest_api_validate_body:
1229
+ json = type_validate_python(
1230
+ OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, json
1231
+ )
1214
1232
  json = model_dump(json) if isinstance(json, BaseModel) else json
1215
1233
 
1216
1234
  return self._github.request(
@@ -1265,15 +1283,17 @@ class TeamsClient:
1265
1283
 
1266
1284
  url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
1267
1285
 
1268
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1269
-
1270
- if not kwargs:
1271
- kwargs = UNSET
1286
+ headers = {
1287
+ "Content-Type": "application/json",
1288
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1289
+ **(headers or {}),
1290
+ }
1272
1291
 
1273
1292
  json = kwargs if data is UNSET else data
1274
- json = type_validate_python(
1275
- OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, json
1276
- )
1293
+ if self._github.config.rest_api_validate_body:
1294
+ json = type_validate_python(
1295
+ OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, json
1296
+ )
1277
1297
  json = model_dump(json) if isinstance(json, BaseModel) else json
1278
1298
 
1279
1299
  return await self._github.arequest(
@@ -1421,16 +1441,18 @@ class TeamsClient:
1421
1441
 
1422
1442
  url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
1423
1443
 
1424
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1425
-
1426
- if not kwargs:
1427
- kwargs = UNSET
1444
+ headers = {
1445
+ "Content-Type": "application/json",
1446
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1447
+ **(headers or {}),
1448
+ }
1428
1449
 
1429
1450
  json = kwargs if data is UNSET else data
1430
- json = type_validate_python(
1431
- OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
1432
- json,
1433
- )
1451
+ if self._github.config.rest_api_validate_body:
1452
+ json = type_validate_python(
1453
+ OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
1454
+ json,
1455
+ )
1434
1456
  json = model_dump(json) if isinstance(json, BaseModel) else json
1435
1457
 
1436
1458
  return self._github.request(
@@ -1488,16 +1510,18 @@ class TeamsClient:
1488
1510
 
1489
1511
  url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
1490
1512
 
1491
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1492
-
1493
- if not kwargs:
1494
- kwargs = UNSET
1513
+ headers = {
1514
+ "Content-Type": "application/json",
1515
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1516
+ **(headers or {}),
1517
+ }
1495
1518
 
1496
1519
  json = kwargs if data is UNSET else data
1497
- json = type_validate_python(
1498
- OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
1499
- json,
1500
- )
1520
+ if self._github.config.rest_api_validate_body:
1521
+ json = type_validate_python(
1522
+ OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
1523
+ json,
1524
+ )
1501
1525
  json = model_dump(json) if isinstance(json, BaseModel) else json
1502
1526
 
1503
1527
  return await self._github.arequest(
@@ -1626,13 +1650,17 @@ class TeamsClient:
1626
1650
 
1627
1651
  url = f"/orgs/{org}/teams/{team_slug}/external-groups"
1628
1652
 
1629
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1630
-
1631
- if not kwargs:
1632
- kwargs = UNSET
1653
+ headers = {
1654
+ "Content-Type": "application/json",
1655
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1656
+ **(headers or {}),
1657
+ }
1633
1658
 
1634
1659
  json = kwargs if data is UNSET else data
1635
- json = type_validate_python(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, json)
1660
+ if self._github.config.rest_api_validate_body:
1661
+ json = type_validate_python(
1662
+ OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, json
1663
+ )
1636
1664
  json = model_dump(json) if isinstance(json, BaseModel) else json
1637
1665
 
1638
1666
  return self._github.request(
@@ -1679,13 +1707,17 @@ class TeamsClient:
1679
1707
 
1680
1708
  url = f"/orgs/{org}/teams/{team_slug}/external-groups"
1681
1709
 
1682
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1683
-
1684
- if not kwargs:
1685
- kwargs = UNSET
1710
+ headers = {
1711
+ "Content-Type": "application/json",
1712
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1713
+ **(headers or {}),
1714
+ }
1686
1715
 
1687
1716
  json = kwargs if data is UNSET else data
1688
- json = type_validate_python(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, json)
1717
+ if self._github.config.rest_api_validate_body:
1718
+ json = type_validate_python(
1719
+ OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, json
1720
+ )
1689
1721
  json = model_dump(json) if isinstance(json, BaseModel) else json
1690
1722
 
1691
1723
  return await self._github.arequest(
@@ -1918,15 +1950,17 @@ class TeamsClient:
1918
1950
 
1919
1951
  url = f"/orgs/{org}/teams/{team_slug}/memberships/{username}"
1920
1952
 
1921
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1922
-
1923
- if not kwargs:
1924
- kwargs = UNSET
1953
+ headers = {
1954
+ "Content-Type": "application/json",
1955
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1956
+ **(headers or {}),
1957
+ }
1925
1958
 
1926
1959
  json = kwargs if data is UNSET else data
1927
- json = type_validate_python(
1928
- OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, json
1929
- )
1960
+ if self._github.config.rest_api_validate_body:
1961
+ json = type_validate_python(
1962
+ OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, json
1963
+ )
1930
1964
  json = model_dump(json) if isinstance(json, BaseModel) else json
1931
1965
 
1932
1966
  return self._github.request(
@@ -1980,15 +2014,17 @@ class TeamsClient:
1980
2014
 
1981
2015
  url = f"/orgs/{org}/teams/{team_slug}/memberships/{username}"
1982
2016
 
1983
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1984
-
1985
- if not kwargs:
1986
- kwargs = UNSET
2017
+ headers = {
2018
+ "Content-Type": "application/json",
2019
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2020
+ **(headers or {}),
2021
+ }
1987
2022
 
1988
2023
  json = kwargs if data is UNSET else data
1989
- json = type_validate_python(
1990
- OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, json
1991
- )
2024
+ if self._github.config.rest_api_validate_body:
2025
+ json = type_validate_python(
2026
+ OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, json
2027
+ )
1992
2028
  json = model_dump(json) if isinstance(json, BaseModel) else json
1993
2029
 
1994
2030
  return await self._github.arequest(
@@ -2202,15 +2238,17 @@ class TeamsClient:
2202
2238
 
2203
2239
  url = f"/orgs/{org}/teams/{team_slug}/projects/{project_id}"
2204
2240
 
2205
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2206
-
2207
- if not kwargs:
2208
- kwargs = UNSET
2241
+ headers = {
2242
+ "Content-Type": "application/json",
2243
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2244
+ **(headers or {}),
2245
+ }
2209
2246
 
2210
2247
  json = kwargs if data is UNSET else data
2211
- json = type_validate_python(
2212
- Union[OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, None], json
2213
- )
2248
+ if self._github.config.rest_api_validate_body:
2249
+ json = type_validate_python(
2250
+ Union[OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, None], json
2251
+ )
2214
2252
  json = model_dump(json) if isinstance(json, BaseModel) else json
2215
2253
 
2216
2254
  return self._github.request(
@@ -2271,15 +2309,17 @@ class TeamsClient:
2271
2309
 
2272
2310
  url = f"/orgs/{org}/teams/{team_slug}/projects/{project_id}"
2273
2311
 
2274
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2275
-
2276
- if not kwargs:
2277
- kwargs = UNSET
2312
+ headers = {
2313
+ "Content-Type": "application/json",
2314
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2315
+ **(headers or {}),
2316
+ }
2278
2317
 
2279
2318
  json = kwargs if data is UNSET else data
2280
- json = type_validate_python(
2281
- Union[OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, None], json
2282
- )
2319
+ if self._github.config.rest_api_validate_body:
2320
+ json = type_validate_python(
2321
+ Union[OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, None], json
2322
+ )
2283
2323
  json = model_dump(json) if isinstance(json, BaseModel) else json
2284
2324
 
2285
2325
  return await self._github.arequest(
@@ -2488,13 +2528,15 @@ class TeamsClient:
2488
2528
 
2489
2529
  url = f"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
2490
2530
 
2491
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2492
-
2493
- if not kwargs:
2494
- kwargs = UNSET
2531
+ headers = {
2532
+ "Content-Type": "application/json",
2533
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2534
+ **(headers or {}),
2535
+ }
2495
2536
 
2496
2537
  json = kwargs if data is UNSET else data
2497
- json = type_validate_python(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, json)
2538
+ if self._github.config.rest_api_validate_body:
2539
+ json = type_validate_python(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, json)
2498
2540
  json = model_dump(json) if isinstance(json, BaseModel) else json
2499
2541
 
2500
2542
  return self._github.request(
@@ -2546,13 +2588,15 @@ class TeamsClient:
2546
2588
 
2547
2589
  url = f"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
2548
2590
 
2549
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2550
-
2551
- if not kwargs:
2552
- kwargs = UNSET
2591
+ headers = {
2592
+ "Content-Type": "application/json",
2593
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2594
+ **(headers or {}),
2595
+ }
2553
2596
 
2554
2597
  json = kwargs if data is UNSET else data
2555
- json = type_validate_python(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, json)
2598
+ if self._github.config.rest_api_validate_body:
2599
+ json = type_validate_python(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, json)
2556
2600
  json = model_dump(json) if isinstance(json, BaseModel) else json
2557
2601
 
2558
2602
  return await self._github.arequest(
@@ -2689,15 +2733,17 @@ class TeamsClient:
2689
2733
 
2690
2734
  url = f"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings"
2691
2735
 
2692
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2693
-
2694
- if not kwargs:
2695
- kwargs = UNSET
2736
+ headers = {
2737
+ "Content-Type": "application/json",
2738
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2739
+ **(headers or {}),
2740
+ }
2696
2741
 
2697
2742
  json = kwargs if data is UNSET else data
2698
- json = type_validate_python(
2699
- OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, json
2700
- )
2743
+ if self._github.config.rest_api_validate_body:
2744
+ json = type_validate_python(
2745
+ OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, json
2746
+ )
2701
2747
  json = model_dump(json) if isinstance(json, BaseModel) else json
2702
2748
 
2703
2749
  return self._github.request(
@@ -2749,15 +2795,17 @@ class TeamsClient:
2749
2795
 
2750
2796
  url = f"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings"
2751
2797
 
2752
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2753
-
2754
- if not kwargs:
2755
- kwargs = UNSET
2798
+ headers = {
2799
+ "Content-Type": "application/json",
2800
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2801
+ **(headers or {}),
2802
+ }
2756
2803
 
2757
2804
  json = kwargs if data is UNSET else data
2758
- json = type_validate_python(
2759
- OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, json
2760
- )
2805
+ if self._github.config.rest_api_validate_body:
2806
+ json = type_validate_python(
2807
+ OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, json
2808
+ )
2761
2809
  json = model_dump(json) if isinstance(json, BaseModel) else json
2762
2810
 
2763
2811
  return await self._github.arequest(
@@ -2968,13 +3016,15 @@ class TeamsClient:
2968
3016
 
2969
3017
  url = f"/teams/{team_id}"
2970
3018
 
2971
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2972
-
2973
- if not kwargs:
2974
- kwargs = UNSET
3019
+ headers = {
3020
+ "Content-Type": "application/json",
3021
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3022
+ **(headers or {}),
3023
+ }
2975
3024
 
2976
3025
  json = kwargs if data is UNSET else data
2977
- json = type_validate_python(TeamsTeamIdPatchBody, json)
3026
+ if self._github.config.rest_api_validate_body:
3027
+ json = type_validate_python(TeamsTeamIdPatchBody, json)
2978
3028
  json = model_dump(json) if isinstance(json, BaseModel) else json
2979
3029
 
2980
3030
  return self._github.request(
@@ -3030,13 +3080,15 @@ class TeamsClient:
3030
3080
 
3031
3081
  url = f"/teams/{team_id}"
3032
3082
 
3033
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3034
-
3035
- if not kwargs:
3036
- kwargs = UNSET
3083
+ headers = {
3084
+ "Content-Type": "application/json",
3085
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3086
+ **(headers or {}),
3087
+ }
3037
3088
 
3038
3089
  json = kwargs if data is UNSET else data
3039
- json = type_validate_python(TeamsTeamIdPatchBody, json)
3090
+ if self._github.config.rest_api_validate_body:
3091
+ json = type_validate_python(TeamsTeamIdPatchBody, json)
3040
3092
  json = model_dump(json) if isinstance(json, BaseModel) else json
3041
3093
 
3042
3094
  return await self._github.arequest(
@@ -3153,13 +3205,15 @@ class TeamsClient:
3153
3205
 
3154
3206
  url = f"/teams/{team_id}/discussions"
3155
3207
 
3156
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3157
-
3158
- if not kwargs:
3159
- kwargs = UNSET
3208
+ headers = {
3209
+ "Content-Type": "application/json",
3210
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3211
+ **(headers or {}),
3212
+ }
3160
3213
 
3161
3214
  json = kwargs if data is UNSET else data
3162
- json = type_validate_python(TeamsTeamIdDiscussionsPostBody, json)
3215
+ if self._github.config.rest_api_validate_body:
3216
+ json = type_validate_python(TeamsTeamIdDiscussionsPostBody, json)
3163
3217
  json = model_dump(json) if isinstance(json, BaseModel) else json
3164
3218
 
3165
3219
  return self._github.request(
@@ -3205,13 +3259,15 @@ class TeamsClient:
3205
3259
 
3206
3260
  url = f"/teams/{team_id}/discussions"
3207
3261
 
3208
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3209
-
3210
- if not kwargs:
3211
- kwargs = UNSET
3262
+ headers = {
3263
+ "Content-Type": "application/json",
3264
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3265
+ **(headers or {}),
3266
+ }
3212
3267
 
3213
3268
  json = kwargs if data is UNSET else data
3214
- json = type_validate_python(TeamsTeamIdDiscussionsPostBody, json)
3269
+ if self._github.config.rest_api_validate_body:
3270
+ json = type_validate_python(TeamsTeamIdDiscussionsPostBody, json)
3215
3271
  json = model_dump(json) if isinstance(json, BaseModel) else json
3216
3272
 
3217
3273
  return await self._github.arequest(
@@ -3344,15 +3400,17 @@ class TeamsClient:
3344
3400
 
3345
3401
  url = f"/teams/{team_id}/discussions/{discussion_number}"
3346
3402
 
3347
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3348
-
3349
- if not kwargs:
3350
- kwargs = UNSET
3403
+ headers = {
3404
+ "Content-Type": "application/json",
3405
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3406
+ **(headers or {}),
3407
+ }
3351
3408
 
3352
3409
  json = kwargs if data is UNSET else data
3353
- json = type_validate_python(
3354
- TeamsTeamIdDiscussionsDiscussionNumberPatchBody, json
3355
- )
3410
+ if self._github.config.rest_api_validate_body:
3411
+ json = type_validate_python(
3412
+ TeamsTeamIdDiscussionsDiscussionNumberPatchBody, json
3413
+ )
3356
3414
  json = model_dump(json) if isinstance(json, BaseModel) else json
3357
3415
 
3358
3416
  return self._github.request(
@@ -3403,15 +3461,17 @@ class TeamsClient:
3403
3461
 
3404
3462
  url = f"/teams/{team_id}/discussions/{discussion_number}"
3405
3463
 
3406
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3407
-
3408
- if not kwargs:
3409
- kwargs = UNSET
3464
+ headers = {
3465
+ "Content-Type": "application/json",
3466
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3467
+ **(headers or {}),
3468
+ }
3410
3469
 
3411
3470
  json = kwargs if data is UNSET else data
3412
- json = type_validate_python(
3413
- TeamsTeamIdDiscussionsDiscussionNumberPatchBody, json
3414
- )
3471
+ if self._github.config.rest_api_validate_body:
3472
+ json = type_validate_python(
3473
+ TeamsTeamIdDiscussionsDiscussionNumberPatchBody, json
3474
+ )
3415
3475
  json = model_dump(json) if isinstance(json, BaseModel) else json
3416
3476
 
3417
3477
  return await self._github.arequest(
@@ -3531,15 +3591,17 @@ class TeamsClient:
3531
3591
 
3532
3592
  url = f"/teams/{team_id}/discussions/{discussion_number}/comments"
3533
3593
 
3534
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3535
-
3536
- if not kwargs:
3537
- kwargs = UNSET
3594
+ headers = {
3595
+ "Content-Type": "application/json",
3596
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3597
+ **(headers or {}),
3598
+ }
3538
3599
 
3539
3600
  json = kwargs if data is UNSET else data
3540
- json = type_validate_python(
3541
- TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, json
3542
- )
3601
+ if self._github.config.rest_api_validate_body:
3602
+ json = type_validate_python(
3603
+ TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, json
3604
+ )
3543
3605
  json = model_dump(json) if isinstance(json, BaseModel) else json
3544
3606
 
3545
3607
  return self._github.request(
@@ -3591,15 +3653,17 @@ class TeamsClient:
3591
3653
 
3592
3654
  url = f"/teams/{team_id}/discussions/{discussion_number}/comments"
3593
3655
 
3594
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3595
-
3596
- if not kwargs:
3597
- kwargs = UNSET
3656
+ headers = {
3657
+ "Content-Type": "application/json",
3658
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3659
+ **(headers or {}),
3660
+ }
3598
3661
 
3599
3662
  json = kwargs if data is UNSET else data
3600
- json = type_validate_python(
3601
- TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, json
3602
- )
3663
+ if self._github.config.rest_api_validate_body:
3664
+ json = type_validate_python(
3665
+ TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, json
3666
+ )
3603
3667
  json = model_dump(json) if isinstance(json, BaseModel) else json
3604
3668
 
3605
3669
  return await self._github.arequest(
@@ -3740,15 +3804,18 @@ class TeamsClient:
3740
3804
 
3741
3805
  url = f"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}"
3742
3806
 
3743
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3744
-
3745
- if not kwargs:
3746
- kwargs = UNSET
3807
+ headers = {
3808
+ "Content-Type": "application/json",
3809
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3810
+ **(headers or {}),
3811
+ }
3747
3812
 
3748
3813
  json = kwargs if data is UNSET else data
3749
- json = type_validate_python(
3750
- TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, json
3751
- )
3814
+ if self._github.config.rest_api_validate_body:
3815
+ json = type_validate_python(
3816
+ TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
3817
+ json,
3818
+ )
3752
3819
  json = model_dump(json) if isinstance(json, BaseModel) else json
3753
3820
 
3754
3821
  return self._github.request(
@@ -3803,15 +3870,18 @@ class TeamsClient:
3803
3870
 
3804
3871
  url = f"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}"
3805
3872
 
3806
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
3807
-
3808
- if not kwargs:
3809
- kwargs = UNSET
3873
+ headers = {
3874
+ "Content-Type": "application/json",
3875
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
3876
+ **(headers or {}),
3877
+ }
3810
3878
 
3811
3879
  json = kwargs if data is UNSET else data
3812
- json = type_validate_python(
3813
- TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, json
3814
- )
3880
+ if self._github.config.rest_api_validate_body:
3881
+ json = type_validate_python(
3882
+ TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
3883
+ json,
3884
+ )
3815
3885
  json = model_dump(json) if isinstance(json, BaseModel) else json
3816
3886
 
3817
3887
  return await self._github.arequest(
@@ -4174,13 +4244,15 @@ class TeamsClient:
4174
4244
 
4175
4245
  url = f"/teams/{team_id}/memberships/{username}"
4176
4246
 
4177
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
4178
-
4179
- if not kwargs:
4180
- kwargs = UNSET
4247
+ headers = {
4248
+ "Content-Type": "application/json",
4249
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
4250
+ **(headers or {}),
4251
+ }
4181
4252
 
4182
4253
  json = kwargs if data is UNSET else data
4183
- json = type_validate_python(TeamsTeamIdMembershipsUsernamePutBody, json)
4254
+ if self._github.config.rest_api_validate_body:
4255
+ json = type_validate_python(TeamsTeamIdMembershipsUsernamePutBody, json)
4184
4256
  json = model_dump(json) if isinstance(json, BaseModel) else json
4185
4257
 
4186
4258
  return self._github.request(
@@ -4234,13 +4306,15 @@ class TeamsClient:
4234
4306
 
4235
4307
  url = f"/teams/{team_id}/memberships/{username}"
4236
4308
 
4237
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
4238
-
4239
- if not kwargs:
4240
- kwargs = UNSET
4309
+ headers = {
4310
+ "Content-Type": "application/json",
4311
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
4312
+ **(headers or {}),
4313
+ }
4241
4314
 
4242
4315
  json = kwargs if data is UNSET else data
4243
- json = type_validate_python(TeamsTeamIdMembershipsUsernamePutBody, json)
4316
+ if self._github.config.rest_api_validate_body:
4317
+ json = type_validate_python(TeamsTeamIdMembershipsUsernamePutBody, json)
4244
4318
  json = model_dump(json) if isinstance(json, BaseModel) else json
4245
4319
 
4246
4320
  return await self._github.arequest(
@@ -4449,13 +4523,15 @@ class TeamsClient:
4449
4523
 
4450
4524
  url = f"/teams/{team_id}/projects/{project_id}"
4451
4525
 
4452
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
4453
-
4454
- if not kwargs:
4455
- kwargs = UNSET
4526
+ headers = {
4527
+ "Content-Type": "application/json",
4528
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
4529
+ **(headers or {}),
4530
+ }
4456
4531
 
4457
4532
  json = kwargs if data is UNSET else data
4458
- json = type_validate_python(TeamsTeamIdProjectsProjectIdPutBody, json)
4533
+ if self._github.config.rest_api_validate_body:
4534
+ json = type_validate_python(TeamsTeamIdProjectsProjectIdPutBody, json)
4459
4535
  json = model_dump(json) if isinstance(json, BaseModel) else json
4460
4536
 
4461
4537
  return self._github.request(
@@ -4511,13 +4587,15 @@ class TeamsClient:
4511
4587
 
4512
4588
  url = f"/teams/{team_id}/projects/{project_id}"
4513
4589
 
4514
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
4515
-
4516
- if not kwargs:
4517
- kwargs = UNSET
4590
+ headers = {
4591
+ "Content-Type": "application/json",
4592
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
4593
+ **(headers or {}),
4594
+ }
4518
4595
 
4519
4596
  json = kwargs if data is UNSET else data
4520
- json = type_validate_python(TeamsTeamIdProjectsProjectIdPutBody, json)
4597
+ if self._github.config.rest_api_validate_body:
4598
+ json = type_validate_python(TeamsTeamIdProjectsProjectIdPutBody, json)
4521
4599
  json = model_dump(json) if isinstance(json, BaseModel) else json
4522
4600
 
4523
4601
  return await self._github.arequest(
@@ -4741,13 +4819,15 @@ class TeamsClient:
4741
4819
 
4742
4820
  url = f"/teams/{team_id}/repos/{owner}/{repo}"
4743
4821
 
4744
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
4745
-
4746
- if not kwargs:
4747
- kwargs = UNSET
4822
+ headers = {
4823
+ "Content-Type": "application/json",
4824
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
4825
+ **(headers or {}),
4826
+ }
4748
4827
 
4749
4828
  json = kwargs if data is UNSET else data
4750
- json = type_validate_python(TeamsTeamIdReposOwnerRepoPutBody, json)
4829
+ if self._github.config.rest_api_validate_body:
4830
+ json = type_validate_python(TeamsTeamIdReposOwnerRepoPutBody, json)
4751
4831
  json = model_dump(json) if isinstance(json, BaseModel) else json
4752
4832
 
4753
4833
  return self._github.request(
@@ -4804,13 +4884,15 @@ class TeamsClient:
4804
4884
 
4805
4885
  url = f"/teams/{team_id}/repos/{owner}/{repo}"
4806
4886
 
4807
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
4808
-
4809
- if not kwargs:
4810
- kwargs = UNSET
4887
+ headers = {
4888
+ "Content-Type": "application/json",
4889
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
4890
+ **(headers or {}),
4891
+ }
4811
4892
 
4812
4893
  json = kwargs if data is UNSET else data
4813
- json = type_validate_python(TeamsTeamIdReposOwnerRepoPutBody, json)
4894
+ if self._github.config.rest_api_validate_body:
4895
+ json = type_validate_python(TeamsTeamIdReposOwnerRepoPutBody, json)
4814
4896
  json = model_dump(json) if isinstance(json, BaseModel) else json
4815
4897
 
4816
4898
  return await self._github.arequest(
@@ -4953,13 +5035,15 @@ class TeamsClient:
4953
5035
 
4954
5036
  url = f"/teams/{team_id}/team-sync/group-mappings"
4955
5037
 
4956
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
4957
-
4958
- if not kwargs:
4959
- kwargs = UNSET
5038
+ headers = {
5039
+ "Content-Type": "application/json",
5040
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
5041
+ **(headers or {}),
5042
+ }
4960
5043
 
4961
5044
  json = kwargs if data is UNSET else data
4962
- json = type_validate_python(TeamsTeamIdTeamSyncGroupMappingsPatchBody, json)
5045
+ if self._github.config.rest_api_validate_body:
5046
+ json = type_validate_python(TeamsTeamIdTeamSyncGroupMappingsPatchBody, json)
4963
5047
  json = model_dump(json) if isinstance(json, BaseModel) else json
4964
5048
 
4965
5049
  return self._github.request(
@@ -5013,13 +5097,15 @@ class TeamsClient:
5013
5097
 
5014
5098
  url = f"/teams/{team_id}/team-sync/group-mappings"
5015
5099
 
5016
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
5017
-
5018
- if not kwargs:
5019
- kwargs = UNSET
5100
+ headers = {
5101
+ "Content-Type": "application/json",
5102
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
5103
+ **(headers or {}),
5104
+ }
5020
5105
 
5021
5106
  json = kwargs if data is UNSET else data
5022
- json = type_validate_python(TeamsTeamIdTeamSyncGroupMappingsPatchBody, json)
5107
+ if self._github.config.rest_api_validate_body:
5108
+ json = type_validate_python(TeamsTeamIdTeamSyncGroupMappingsPatchBody, json)
5023
5109
  json = model_dump(json) if isinstance(json, BaseModel) else json
5024
5110
 
5025
5111
  return await self._github.arequest(