Skip to content

Commit

Permalink
👽 re-generate schema models
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Oct 5, 2024
1 parent 6b6ea39 commit 3865ae3
Show file tree
Hide file tree
Showing 2,996 changed files with 140,741 additions and 142,632 deletions.
2 changes: 1 addition & 1 deletion codegen/parser/schemas/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def get_using_imports(self) -> set[str]:
def _get_field_args(self) -> dict[str, str]:
args = super()._get_field_args()
if self.discriminator:
args["discriminator"] = self.discriminator
args["discriminator"] = repr(self.discriminator)
return args

@override
Expand Down
52 changes: 24 additions & 28 deletions githubkit/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,6 @@
from githubkit.versions.v2022_11_28.models import (
SimpleInstallation as SimpleInstallation,
)
from githubkit.versions.v2022_11_28.models import (
SimpleUserWebhooks as SimpleUserWebhooks,
)
from githubkit.versions.v2022_11_28.models import (
TeamRoleAssignment as TeamRoleAssignment,
)
Expand Down Expand Up @@ -6225,6 +6222,9 @@
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems,
)
Expand Down Expand Up @@ -6402,6 +6402,12 @@
from githubkit.versions.v2022_11_28.models import (
PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200,
)
Expand Down Expand Up @@ -6561,6 +6567,9 @@
from githubkit.versions.v2022_11_28.models import (
ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody,
)
Expand Down Expand Up @@ -6666,6 +6675,9 @@
from githubkit.versions.v2022_11_28.models import (
OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200,
)
Expand Down Expand Up @@ -6786,6 +6798,9 @@
from githubkit.versions.v2022_11_28.models import (
PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody,
)
Expand Down Expand Up @@ -7122,9 +7137,6 @@
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems,
)
Expand Down Expand Up @@ -7269,15 +7281,9 @@
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId,
)
Expand Down Expand Up @@ -7434,9 +7440,6 @@
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase,
)
Expand Down Expand Up @@ -7578,9 +7581,6 @@
from githubkit.versions.v2022_11_28.models import (
ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner,
)
Expand Down Expand Up @@ -7698,9 +7698,6 @@
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0,
)
from githubkit.versions.v2022_11_28.models import (
ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems,
)
Expand Down Expand Up @@ -10108,7 +10105,6 @@
"RepositoryWebhooksPropTemplateRepository",
"RepositoryWebhooksPropTemplateRepositoryPropOwner",
"RepositoryWebhooksPropTemplateRepositoryPropPermissions",
"SimpleUserWebhooks",
"WebhooksRule",
"SimpleCheckSuite",
"CheckRunWithSimpleCheckSuite",
Expand Down Expand Up @@ -12435,15 +12431,15 @@
"ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",
"ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",
"ReposOwnerRepoBranchesBranchRenamePostBody",
"ReposOwnerRepoCheckRunsPostBodyPropOutput",
"ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems",
Expand Down
Loading

0 comments on commit 3865ae3

Please sign in to comment.