From 2624d50bf4659978ae7919d5df2436281a8aff7c Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Fri, 17 Jan 2025 09:02:30 +0000 Subject: [PATCH] [GitHubEnterprise-3.13] Update to 1.1.4-446a3cd1fdbd8dda94d848b89bd8f6e2 from 1.1.4-398d18348d48e9783363f49ed8fadd49 Detected Schema changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ├─┬Paths │ └─┬/orgs/{org}/memberships/{username} │ └─┬PUT │ └──[🔀] description (12859:20) └─┬Components └─┬integration └─┬owner ├──[➕] anyOf (66758:13) ├──[➕] anyOf (65758:7) ├──[➖] oneOf (66732:7)❌ └──[➖] oneOf (65757:7)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | components | 4 | 2 | | paths | 1 | 0 | Date: 01/17/25 | Commit: New: etc/specs/GitHubEnterprise-3.13/previous.spec.yaml, Original: etc/specs/GitHubEnterprise-3.13/current.spec.yaml - ❌ **BREAKING Changes**: _2_ out of _5_ - **Modifications**: _1_ - **Removals**: _2_ - **Additions**: _2_ - **Breaking Removals**: _2_ ERROR: breaking changes discovered --- .../etc/openapi-client-generator.state | 216 +- .../Schema/Integration/Owner.php | 45 + .../src/Internal/Hydrator/Operation/App.php | 394 +--- .../AppManifests/Code/Conversions.php | 394 +--- .../Hydrator/Operation/Apps/AppSlug.php | 394 +--- .../Operation/Repos/Owner/Repo/CheckRuns.php | 394 +--- .../Repos/Owner/Repo/CheckRuns/CheckRunId.php | 394 +--- .../Repos/Owner/Repo/CheckSuites.php | 1541 +++++++------ .../Owner/Repo/CheckSuites/CheckSuiteId.php | 1541 +++++++------ .../Repos/Owner/Repo/Deployments.php | 31 +- .../Owner/Repo/Deployments/DeploymentId.php | 31 +- .../Deployments/DeploymentId/Statuses.php | 31 +- .../DeploymentId/Statuses/StatusId.php | 31 +- .../Operation/Repos/Owner/Repo/Issues.php | 31 +- .../Owner/Repo/Issues/Comments/CommentId.php | 31 +- .../Owner/Repo/Issues/Events/EventId.php | 31 +- .../Repos/Owner/Repo/Issues/IssueNumber.php | 31 +- .../Repo/Issues/IssueNumber/Assignees.php | 31 +- .../Repo/Issues/IssueNumber/Comments.php | 31 +- .../Internal/Hydrator/WebHook/CheckRun.php | 1292 +++++------ .../WebHook/DeploymentProtectionRule.php | 40 +- .../Hydrator/WebHook/IssueComment.php | 2054 +++++++++-------- .../Internal/Hydrator/WebHook/WorkflowJob.php | 30 +- .../Dependabot/ListAlertsForEnterprise.php | 2 +- .../Operator/Dependabot/ListAlertsForOrg.php | 2 +- .../Operator/Dependabot/ListAlertsForRepo.php | 2 +- .../Dependabot/ListAlertsForRepoListing.php | 2 +- .../src/Internal/Router/Get/Dependabot.php | 6 +- .../src/Internal/Router/Get/Five.php | 2 +- .../src/Internal/Router/Get/Six.php | 2 +- .../src/Internal/Router/List/Dependabot.php | 2 +- .../src/Internal/Router/List/Six.php | 2 +- .../src/Operation/Dependabot.php | 8 +- .../src/PHPStan/ClientCallReturnTypes.php | 8 +- .../src/Schema/AddedToProjectIssueEvent.php | 120 +- .../TietA52E66B2/Tiet7F583E73.php} | 294 ++- .../src/Schema/AssignedIssueEvent.php | 120 +- .../src/Schema/BranchProtection.php | 290 ++- .../src/Schema/BranchWithProtection.php | 290 ++- .../src/Schema/CheckRun.php | 240 +- .../Schema/CheckRunWithSimpleCheckSuite.php | 360 ++- .../src/Schema/CheckSuite.php | 120 +- .../Schema/ConvertedNoteToIssueIssueEvent.php | 120 +- .../src/Schema/DemilestonedIssueEvent.php | 120 +- .../src/Schema/Deployment.php | 120 +- .../src/Schema/DeploymentSimple.php | 120 +- .../src/Schema/DeploymentStatus.php | 120 +- .../src/Schema/Event.php | 240 +- .../src/Schema/Event/Payload.php | 240 +- .../src/Schema/Integration.php | 124 +- .../src/Schema/Issue.php | 120 +- .../src/Schema/IssueComment.php | 120 +- .../src/Schema/IssueEvent.php | 240 +- .../src/Schema/IssueEventForIssue.php | 1667 +++++++++++-- .../src/Schema/IssueSearchResultItem.php | 120 +- .../src/Schema/LabeledIssueEvent.php | 120 +- .../src/Schema/LockedIssueEvent.php | 120 +- .../src/Schema/MilestonedIssueEvent.php | 120 +- .../Schema/MovedColumnInProjectIssueEvent.php | 120 +- .../Response/ApplicationJson/Created.php | 95 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../Response/ApplicationJson/Ok.php | 145 +- .../Response/ApplicationJson/Ok.php | 145 +- .../src/Schema/ProtectedBranch.php | 290 ++- .../RequiredPullRequestReviews.php | 290 ++- .../BypassPullRequestAllowances.php | 145 +- .../DismissalRestrictions.php | 145 +- .../ProtectedBranchPullRequestReview.php | 290 ++- .../BypassPullRequestAllowances.php | 145 +- .../DismissalRestrictions.php | 145 +- .../Schema/RemovedFromProjectIssueEvent.php | 120 +- .../src/Schema/RenamedIssueEvent.php | 120 +- .../src/Schema/ReviewDismissedIssueEvent.php | 120 +- .../Schema/ReviewRequestRemovedIssueEvent.php | 120 +- .../src/Schema/ReviewRequestedIssueEvent.php | 120 +- .../src/Schema/ShortBranch.php | 290 ++- .../src/Schema/SimpleCheckSuite.php | 120 +- .../src/Schema/StateChangeIssueEvent.php | 120 +- .../src/Schema/TimelineAssignedIssueEvent.php | 120 +- .../src/Schema/TimelineCommentEvent.php | 120 +- .../Schema/TimelineCrossReferencedEvent.php | 120 +- .../TimelineCrossReferencedEvent/Source.php | 120 +- .../src/Schema/TimelineIssueEvents.php | 1828 +++++++++++++-- .../Schema/TimelineUnassignedIssueEvent.php | 120 +- .../src/Schema/UnassignedIssueEvent.php | 120 +- .../src/Schema/UnlabeledIssueEvent.php | 120 +- .../src/Schema/WebhookCheckRunCompleted.php | 360 ++- .../src/Schema/WebhookCheckRunCreated.php | 360 ++- .../Schema/WebhookCheckRunRequestedAction.php | 360 ++- .../src/Schema/WebhookCheckRunRerequested.php | 360 ++- ...bhookDeploymentProtectionRuleRequested.php | 120 +- .../src/Schema/WebhookIssueCommentCreated.php | 120 +- .../WebhookIssueCommentCreated/Comment.php | 120 +- .../src/Schema/WebhookIssueCommentDeleted.php | 120 +- .../src/Schema/WebhookIssueCommentEdited.php | 120 +- .../Schema/WebhookWorkflowJobCompleted.php | 120 +- .../Schema/WebhookWorkflowJobInProgress.php | 120 +- .../src/Schema/WebhookWorkflowJobQueued.php | 120 +- .../src/Schema/WebhookWorkflowJobWaiting.php | 120 +- .../src/Schema/WebhooksIssueComment.php | 120 +- .../tests/Types/ClientCallReturnTypes.php | 8 +- .../GitHubEnterprise-3.13/current.spec.yaml | 161 +- 104 files changed, 14707 insertions(+), 8603 deletions(-) create mode 100644 clients/GitHubEnterprise-3.13/src/Internal/Attribute/CastUnionToType/Schema/Integration/Owner.php rename clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/{Tiet7C8C7BA3/Tiet97BCC415/TietEB32BDB4/TietC6E8FCD7.php => TietD29A14FC/Tiet805269F1/TietA52E66B2/Tiet7F583E73.php} (86%) diff --git a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state index d6f866ad152..2ec02492816 100644 --- a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "398d18348d48e9783363f49ed8fadd49", + "specHash": "446a3cd1fdbd8dda94d848b89bd8f6e2", "generatedFiles": { "files": [ { @@ -1596,7 +1596,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php", - "hash": "f4d6f6268171e5bdac4c36bd524d933e" + "hash": "1f68b2e0be822f1fe631c2ecbf33af29" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php", @@ -3264,7 +3264,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php", - "hash": "e19123d6c0aeecf27c8c9359cfa37d73" + "hash": "eea752ff872e32ab676814f4711443ce" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php", @@ -7508,7 +7508,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php", - "hash": "59ebd25ff38d6eb82f783c0fc1228b41" + "hash": "8e6d6c30b30952cbf0c0a1812a9a20af" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php", @@ -7520,7 +7520,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepoListing.php", - "hash": "87ddd1630305fe04a436c97777744af0" + "hash": "ef770952171600f29eb947006685fe61" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListingTest.php", @@ -13268,7 +13268,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Integration.php", - "hash": "684278837e0f2a8e608066d95e395c2f" + "hash": "eb9c4788b51d28f0f06ea118eb86a773" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookConfigUrl.php", @@ -13736,15 +13736,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Issue.php", - "hash": "41c944d64167caa6989484877e355256" + "hash": "53cdb178d3150e15ccaceae68321d709" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/IssueComment.php", - "hash": "ee797fc57722ffd6ac69b50dc08a4710" + "hash": "ba0e0c9b2e45c750139537d8481c0be5" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Event.php", - "hash": "b5bef7b3b53dfaa63093a7729a016f28" + "hash": "bb6f9bdb030da2dbb03fce4e76285788" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/LinkWithType.php", @@ -14316,7 +14316,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Deployment.php", - "hash": "6552bab336fc7e894f5ec10ce06cd7cb" + "hash": "d6f402191b09ab9010aa5537f2b7e915" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Workflow.php", @@ -14344,7 +14344,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ProtectedBranchPullRequestReview.php", - "hash": "8b07206d7036457aea02c04775a0c05c" + "hash": "572ea8b215ec3e2c18f74afef703b314" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/BranchRestrictionPolicy.php", @@ -14352,11 +14352,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/BranchProtection.php", - "hash": "1d306e4871153d910f0e614cce255e50" + "hash": "a0e403ea2d2c6ee3fedbef5034ec57a4" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ShortBranch.php", - "hash": "199136434bf7c9025c525501e88f07b4" + "hash": "ffa12fe38ca01e7b4bc2c300ac503687" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GitUser.php", @@ -14384,7 +14384,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/BranchWithProtection.php", - "hash": "6a045c327b8a547db062d4a7125875a0" + "hash": "5ceef3213cd38e4abe3e5c2d6cc4f1c4" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/StatusCheckPolicy.php", @@ -14392,15 +14392,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ProtectedBranch.php", - "hash": "d22997e257f7b935d03a3942761d7542" + "hash": "07b85dc086d8b0e08f64ed045156fa72" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/DeploymentSimple.php", - "hash": "fb308cb92360982dec22f8d678820d53" + "hash": "9dfa4b2013546ba39f050c94e4a90ff5" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CheckRun.php", - "hash": "3ad9ebda2a562d2ef48514a046000eeb" + "hash": "3ca5abfb9bd1e74812f286a265047bc3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CheckAnnotation.php", @@ -14408,7 +14408,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CheckSuite.php", - "hash": "a8aa0a65740eeb53d229798ed43bf57d" + "hash": "f92309bc1707bd49060da0a57d5c8ced" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CheckSuitePreference.php", @@ -14604,7 +14604,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/DeploymentStatus.php", - "hash": "3a90019903eaa60325c75daaa35b05a3" + "hash": "300ff635ef832189505ba39a345b7025" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WaitTimer.php", @@ -14700,71 +14700,71 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/IssueEvent.php", - "hash": "eaf9007bca3ede27965fda057c814091" + "hash": "7f6acf9beff24c1345330f98f23573ff" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/LabeledIssueEvent.php", - "hash": "39436e2ea265118482c61e4d903aa3b3" + "hash": "de37fac85202f95d0d80a918bacffe57" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/UnlabeledIssueEvent.php", - "hash": "5a28047425fa38199b3b2a448b8d54e3" + "hash": "1b3d2e8132f1a46d1174acb0596f6b6d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AssignedIssueEvent.php", - "hash": "7e5821878d7b7c403e33af35121cbc1c" + "hash": "35e3aeaa5b779803ff73ae59a820f8ba" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/UnassignedIssueEvent.php", - "hash": "cbd2c5394050b995b5743e54eeab1f9f" + "hash": "103c72d8c9fa6131d461429493cf21b3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/MilestonedIssueEvent.php", - "hash": "716ee4faa6e7c845ca8929733b9a11ab" + "hash": "5671dffdbf7114c076ef75e336aa57c9" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/DemilestonedIssueEvent.php", - "hash": "7ba8536d592dd6336b0647aa5c1881b1" + "hash": "fc62ee3d043aeb438abf6914eb6c878b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/RenamedIssueEvent.php", - "hash": "094e552a50f035980c9df09f33a38553" + "hash": "9495f7b677dc7b6664a8cb4875865e9c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ReviewRequestedIssueEvent.php", - "hash": "acff6a100728842812a835d0ed3b7a76" + "hash": "f268237097f7ed44f694bfed878d6b80" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ReviewRequestRemovedIssueEvent.php", - "hash": "2c8f00de760c49166d1c288dae38df70" + "hash": "0f591077eb95c3d78d388f55666d7ac8" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ReviewDismissedIssueEvent.php", - "hash": "a4b99d3ced111a7f5da894ef74094d74" + "hash": "e91ecdf335be28d73b5f177b6a3cfb1c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/LockedIssueEvent.php", - "hash": "e56f2555bcfd042b2bb8dec78121920b" + "hash": "3c3648105f42ac44c5b1de41bff382dd" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AddedToProjectIssueEvent.php", - "hash": "6825c98898abc70f25dbe34b8db4612e" + "hash": "eee4b94903038896502e075f00dc5876" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/MovedColumnInProjectIssueEvent.php", - "hash": "8b96537fd985bf92faf80510d2897fe7" + "hash": "50d002ba97db863d27b6c37c41c8c731" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/RemovedFromProjectIssueEvent.php", - "hash": "18ad486d3c74245e589fb6b729605d3a" + "hash": "f94957faad0718423440ed964aaff602" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ConvertedNoteToIssueIssueEvent.php", - "hash": "d717007bab1c43d39f7b7043b0d7a474" + "hash": "914cc77986c5ff905b84e1b90523a8f2" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/IssueEventForIssue.php", - "hash": "6df7aa0798bf8991e7836b91fd9cd1b3" + "hash": "9cc71fcefa801f89729d7246c92e37a3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Label.php", @@ -14772,11 +14772,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineCommentEvent.php", - "hash": "b005c0f0bbd529d1b7ed8a9a544b8d26" + "hash": "e18fb2fc687c7339b9e17f1abcffe6ec" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent.php", - "hash": "77171349597f3ad0f8788cdd5b92526d" + "hash": "87897f90cdc3e1e2a5b63fd0eb3bd83d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineCommittedEvent.php", @@ -14800,19 +14800,19 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineAssignedIssueEvent.php", - "hash": "0b8561753c28a27ea2953ebbc615ebdf" + "hash": "16890f2e68d50997d7b4daaf85ad0c8c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineUnassignedIssueEvent.php", - "hash": "f3e0f0eea2a472cee1554851d9ac9546" + "hash": "ff8b5a6fe52161f8c3fa8916c26ea1cd" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/StateChangeIssueEvent.php", - "hash": "9d7788c061d6ef6e0386864adcd47b4b" + "hash": "645297c951f0782f158e31b50ddfc77b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineIssueEvents.php", - "hash": "476eb81a532adccd3dc692da04513122" + "hash": "b6c6d3253920a8918d82761cc186d39d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/DeployKey.php", @@ -15076,7 +15076,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", - "hash": "f45377862996e1ca24e128d66f0ac4af" + "hash": "cf28b8d2c925416fd6ec4af354f04f4b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/LabelSearchResultItem.php", @@ -15168,11 +15168,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/SimpleCheckSuite.php", - "hash": "9cdf35841946e4bfcc27ab78247e75f0" + "hash": "08d17654c44c55fa8d227173a03c6d45" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CheckRunWithSimpleCheckSuite.php", - "hash": "27972b07f007fb79017f33bc8ffccf5a" + "hash": "adb8e5208b53145bbfaef9b120ca1f5c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhooksCodeScanningCommitOid.php", @@ -15648,7 +15648,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhooksIssueComment.php", - "hash": "a6d88c64d82739b808b4a66b4cea60d3" + "hash": "4a57a80937a768786a4ad4687f5f6726" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhooksChanges.php", @@ -16092,7 +16092,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompleted.php", - "hash": "12ffb4537e3a818a780f69141ff38000" + "hash": "f0886bcb784630235b209bf53505d678" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompletedFormEncoded.php", @@ -16100,7 +16100,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreated.php", - "hash": "aa2b0bade8a0272f6efcd27ec7aa9e28" + "hash": "10bf7ba31e9b44eb0e25a03c3f63b6a3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreatedFormEncoded.php", @@ -16108,7 +16108,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedAction.php", - "hash": "7ecc2d6853591505e5f70738dc23822c" + "hash": "934be59c69f197b9ffe6cbafc42c3e29" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedActionFormEncoded.php", @@ -16116,7 +16116,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequested.php", - "hash": "5c2963cbd78aa397778f796059093562" + "hash": "af5f82e816a365248724131567bedef4" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequestedFormEncoded.php", @@ -16212,7 +16212,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentProtectionRuleRequested.php", - "hash": "03bc8d135f220ef4466b19868c3aed2c" + "hash": "91812d7228f3196cca537c01348ea3f9" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved.php", @@ -16356,15 +16356,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "0e30032adb00d484dcf11ddb74405b48" + "hash": "a6f05f05e4521de51e655f31ee72b47d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "ae0c4b774bfb1d49e7442696bc5706fb" + "hash": "c58a0444029ee1aa9af5dbe4f88e744e" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "d79726243a1de7b5e40013c4a9c30e34" + "hash": "d15239ee602177f5cb7eb35d1809b442" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", @@ -17000,19 +17000,19 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobCompleted.php", - "hash": "48561a8e559fe16d8c18485f8975d551" + "hash": "e5fb5ad57079782d3fe4158a5a2982da" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobInProgress.php", - "hash": "84fbb349b771f18460d3326d71316936" + "hash": "9b1535ec7bafa0b8b705454cc38db35b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobQueued.php", - "hash": "b6a1cc35c6df6c8568d904162f6a83fe" + "hash": "ca2f33e5d6f9fe9c2b6f994f8e8df738" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobWaiting.php", - "hash": "a7f0c20fe03eaa4addd0998507950d7e" + "hash": "e53e7f1cd405f3445cf1684b73841b44" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowRunCompleted.php", @@ -17492,7 +17492,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Event\/Payload.php", - "hash": "3274d081ca78d648c452a9ac3e9a6641" + "hash": "c51af9fd5081eccf9c421eb758180f9c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Event\/Payload\/Pages.php", @@ -18200,11 +18200,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ProtectedBranchPullRequestReview\/DismissalRestrictions.php", - "hash": "f9ac849c5d8d71ffb04f044f71e7ffb0" + "hash": "3602cf10c53e24b200a980ed307598aa" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ProtectedBranchPullRequestReview\/BypassPullRequestAllowances.php", - "hash": "4ae424c9ab7f950741a79a89b1f82a91" + "hash": "621b74a0b325f14e93c12a735011acb9" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/BranchRestrictionPolicy\/Users.php", @@ -18292,15 +18292,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ProtectedBranch\/RequiredPullRequestReviews.php", - "hash": "fb51f349a54c3a3e5f75159d3aa10280" + "hash": "e91b644c4a8509c090bd76f7d2c2efbe" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ProtectedBranch\/RequiredPullRequestReviews\/DismissalRestrictions.php", - "hash": "af225a4a134bbb24e2607f277decb0b3" + "hash": "a64d0d0d15f7e74cf8630258ad4d6991" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ProtectedBranch\/RequiredPullRequestReviews\/BypassPullRequestAllowances.php", - "hash": "f0a21427dc8fc47a368b49bf689afa1c" + "hash": "7c96dcc8f31d7fb128e1dcbbed0c19c0" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ProtectedBranch\/EnforceAdmins.php", @@ -18668,7 +18668,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent\/Source.php", - "hash": "3a4bb522a8025886aa28f026c0d481bf" + "hash": "598a5027425b6796194ee907b13a5e80" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet07DCB36B\/Tiet91F472DA\/TietA9474AC9\/Tiet7F1CE862.php", @@ -22812,7 +22812,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Comment.php", - "hash": "1a731f8fc0c9e5d6b186886a836b6fa3" + "hash": "40b9082a340f0020fa87fe19da6d884d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue.php", @@ -24520,7 +24520,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/CreateFromManifest\/Response\/ApplicationJson\/Created.php", - "hash": "b746daadcb46ad133b5c565af019f30d" + "hash": "777d8a74a88194d4106e9b6d443c366f" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet87B96C0C\/Tiet6E6F667E\/Tiet231DAC42\/Tiet9722AD58.php", @@ -25790,21 +25790,17 @@ "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Checks\/SetSuitesPreferences\/Request\/ApplicationJson\/AutoTriggerChecks.php", "hash": "1d48ddd6307dedd6a9088a44b2f4f545" }, - { - "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet7C8C7BA3\/Tiet97BCC415\/TietEB32BDB4\/TietC6E8FCD7.php", - "hash": "9f8d5a452d55b7d27aac49b395f38f39" - }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListForRef\/Response\/ApplicationJson\/Ok.php", - "hash": "4bce389942303949179e550e9e5ffc31" + "hash": "bdc4b688ad369731cfcc1f91a22113d8" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListForRef\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "637b39edec5f943d420e9eca1d8e4f9f" + "hash": "1162f5f25c1cc19f6b5170323e981566" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListForSuite\/Response\/ApplicationJson\/Ok.php", - "hash": "d7e27083fbe2b64d4bbce9b933fff407" + "hash": "eb1c0266266770e70a64c9d97a740829" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -25832,7 +25828,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListSuitesForRef\/Response\/ApplicationJson\/Ok.php", - "hash": "5efe1ab6f667ea9f568140b98108947b" + "hash": "2a5c37b9c9174cbea215ccbdd5259055" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/GetContent\/Response\/ApplicationJson\/Ok.php", @@ -26280,7 +26276,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", - "hash": "40d5947a098043c634617f75d9570008" + "hash": "bf725f2bc2c42a55eab2effe719655d5" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Labels\/Response\/ApplicationJson\/Ok.php", @@ -26520,7 +26516,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php", - "hash": "f330e11663a3945bee87a975e4b41c9d" + "hash": "ca26062c508849ffeaf3e6115bd56cfd" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php", @@ -26628,7 +26624,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php", - "hash": "232f263d8ab1918d4d508a3073fbaee8" + "hash": "a37ef0f86dd26e1735a1af6e096218d8" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php", @@ -26968,7 +26964,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "0fad69374da0792d6207a7cc43f16ccb" + "hash": "fb8d914498dc8ddad6eaa4249ed98e34" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php", @@ -26976,7 +26972,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "6c162baaded82b4c6734e822b560ac43" + "hash": "944582af066e6fc6c831c4e7b872a838" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -27012,7 +27008,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "d7d99d15f73d638902761511a9c667cf" + "hash": "79161555a3f660bbecc50e90624d8d81" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -27180,11 +27176,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "3055ede8c2a908c7a7e9991fd9fc6a8c" + "hash": "39e16973e5fbac0a6d07c23b1696e407" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "456f20917dc6b88699e6eee65b14117b" + "hash": "183651a423a8ed3f5bc2b06d21115acd" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27236,7 +27232,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Dependabot.php", - "hash": "bef1eaa69ea76e7d6f6a0bb87ac6eedc" + "hash": "d15ffa2ad0b303fb3a966cc261bb7493" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -27692,11 +27688,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App.php", - "hash": "a4507a701201d402d29c20296fa7f31e" + "hash": "f48295704a72e4210d2ede32c1d88d92" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/AppManifests\/Code\/Conversions.php", - "hash": "215bb9c409909de572f9ebf676025081" + "hash": "bdfc7044449d5c7b3a9279ef4d487038" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App\/Hook\/Config.php", @@ -27752,7 +27748,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Apps\/AppSlug.php", - "hash": "eba321fd2d336ed0bd1c5463161c7b79" + "hash": "e23fd116163b41c71b2f783d1c2d3397" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Authorizations.php", @@ -28716,11 +28712,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckRuns.php", - "hash": "f6b44efc2c0c6692ba39dfac3067c50c" + "hash": "c0415b96b06592ff133ea2682a029a5c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckRuns\/CheckRunId.php", - "hash": "27c4f7164718380a5f7afea2a4ed9339" + "hash": "7814d8e9b84262afac773d0e7a863e55" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckRuns\/CheckRunId\/Rerequest.php", @@ -28728,7 +28724,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites.php", - "hash": "af404d8d29589f4e1b17477f59254af2" + "hash": "817399862aa768f65008c9c6fcf3197a" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/Preferences.php", @@ -28736,7 +28732,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/CheckSuiteId.php", - "hash": "d7a745d3cc0f0793c33a99d62d11daf1" + "hash": "6425b11b28b0311ada921079ea727c0d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/CheckSuiteId\/CheckRuns.php", @@ -28884,19 +28880,19 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Deployments.php", - "hash": "f09d64c680b010843c534126df2fdd5f" + "hash": "ea2b3dfc7e106ece888a4627ed6b368e" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Deployments\/DeploymentId.php", - "hash": "71fe1bcca5e41bd8885ebf1f2e1db795" + "hash": "d3cf70f350f7111b6cdde526561744c9" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Deployments\/DeploymentId\/Statuses.php", - "hash": "3754ecf74e457bba9efff84c968d1bc2" + "hash": "aa5146a63c8b0b41b87c464237b2f102" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Deployments\/DeploymentId\/Statuses\/StatusId.php", - "hash": "2ae05c67762a6c57515a004a6d19171a" + "hash": "b333c7f2a1f27e27124930da2e21d602" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Dispatches.php", @@ -29044,7 +29040,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", - "hash": "b3b58f5e9ead71a14fd430a07b8e1e4a" + "hash": "ff1bd1ecd0102c1d64bbe41864a6c9c9" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments.php", @@ -29052,7 +29048,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments\/CommentId.php", - "hash": "fa14e206c5373e6e90720f5bdf9136f7" + "hash": "1866374e0369e3e19ecf93d77132de37" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments\/CommentId\/Reactions.php", @@ -29064,15 +29060,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Events\/EventId.php", - "hash": "0ec90829dde401ebbe0f3d1a9be38238" + "hash": "7b1d435e3668f7cced155f79259ec9e0" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber.php", - "hash": "97f3b7a651af3591e03209e7017a85e7" + "hash": "b7487d601cb38282e01602761101a1b3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees.php", - "hash": "e20026d47857fa7c0371db386ead1027" + "hash": "d5f6216104039e5a797e17b5e92c9f90" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees\/Assignee.php", @@ -29080,7 +29076,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Comments.php", - "hash": "d77fe6d4d03d18f53b200be147f31cc7" + "hash": "b6728a1defa3be76df7b17141c00f07a" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Events.php", @@ -29708,7 +29704,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckRun.php", - "hash": "c9a012024c26c5c730181b4af40f3e12" + "hash": "16aa8a6dd36e44cc43571b78c0a0fd09" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckSuite.php", @@ -29744,7 +29740,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentProtectionRule.php", - "hash": "3681d7fb2ad4e47285b6ca878e69af76" + "hash": "22d96c87bbc7280ed7217646f073f9e3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentReview.php", @@ -29792,7 +29788,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "3ac4c43727ebf76534a6b5649bcb9994" + "hash": "5e7b8a2ba3da905fd46f816850382ebf" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", @@ -29956,7 +29952,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowJob.php", - "hash": "2b16ff736906225b1b47b881522d60ef" + "hash": "fb786416449e9b6b18fc01d1658ee666" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowRun.php", @@ -29969,6 +29965,14 @@ { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php", "hash": "9961e5081556c929c54d6f03962dba7f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Integration\/Owner.php", + "hash": "215842ab7a24372a634b03ca9bd58e58" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD29A14FC\/Tiet805269F1\/TietA52E66B2\/Tiet7F583E73.php", + "hash": "bdc8166ddf7c904ff62c49a973846e7e" } ] }, @@ -29988,7 +29992,7 @@ }, { "name": "..\/..\/composer.lock", - "hash": "ba3412e727d85b330527d34ff8accb9e" + "hash": "2832b76b2c15745b362f2029f3d31cbf" } ] } diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Attribute/CastUnionToType/Schema/Integration/Owner.php b/clients/GitHubEnterprise-3.13/src/Internal/Attribute/CastUnionToType/Schema/Integration/Owner.php new file mode 100644 index 00000000000..d2d42f884e4 --- /dev/null +++ b/clients/GitHubEnterprise-3.13/src/Internal/Attribute/CastUnionToType/Schema/Integration/Owner.php @@ -0,0 +1,45 @@ +hydrateObject(Schema\SimpleUser::class, $value); + } catch (Throwable) { + } + } + + if ($signature === 'avatar_url|created_at|description|html_url|id|name|node_id|slug|updated_at|website_url') { + try { + return $hydrator->hydrateObject(Schema\Enterprise::class, $value); + } catch (Throwable) { + } + } + } + + return $value; + } +} diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/App.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/App.php index faa38c07a79..32c4b89aba4 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/App.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/App.php @@ -4,9 +4,9 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterprise\Schema\SimpleUser; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -43,7 +43,6 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -90,17 +89,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -262,267 +265,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - - $value = $payload['user_view_type'] ?? null; - - if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; - } - - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -629,7 +371,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -713,12 +454,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -793,105 +532,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php index 5a414afc60c..27af510c611 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php @@ -4,10 +4,10 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\AppManifests\Code; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterprise\Schema\SimpleUser; use ApiClients\Client\GitHubEnterprise\Schema\ValidationErrorSimple; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -45,7 +45,6 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHubEnterprise\Schema\ValidationErrorSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ValidationErrorSimple($payload), @@ -94,17 +93,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -266,267 +269,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - - $value = $payload['user_view_type'] ?? null; - - if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; - } - - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -748,7 +490,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHubEnterprise\Schema\ValidationErrorSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ValidationErrorSimple($object), @@ -834,12 +575,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -914,105 +653,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Apps/AppSlug.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Apps/AppSlug.php index 8e386e8b3ed..6179af2daea 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Apps/AppSlug.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Apps/AppSlug.php @@ -4,10 +4,10 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Apps; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterprise\Schema\SimpleUser; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -44,7 +44,6 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -92,17 +91,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -264,267 +267,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - - $value = $payload['user_view_type'] ?? null; - - if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; - } - - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -694,7 +436,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), @@ -779,12 +520,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -859,105 +598,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns.php index 7000250a2dd..dabe665c179 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns.php @@ -4,13 +4,13 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\CheckRun; use ApiClients\Client\GitHubEnterprise\Schema\CheckRun\CheckSuite; use ApiClients\Client\GitHubEnterprise\Schema\CheckRun\Output; use ApiClients\Client\GitHubEnterprise\Schema\DeploymentSimple; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterprise\Schema\SimpleUser; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -50,7 +50,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\CheckRun\Output' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRun⚡️Output($payload), 'ApiClients\Client\GitHubEnterprise\Schema\CheckRun\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRun⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\DeploymentSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️DeploymentSimple($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -444,17 +443,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -616,267 +619,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - - $value = $payload['user_view_type'] ?? null; - - if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; - } - - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -1168,7 +910,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\CheckRun\Output' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRun⚡️Output($object), 'ApiClients\Client\GitHubEnterprise\Schema\CheckRun\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRun⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\DeploymentSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️DeploymentSimple($object), default => throw new LogicException("No serialization defined for $className"), @@ -1417,12 +1158,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -1497,105 +1236,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns/CheckRunId.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns/CheckRunId.php index a6ce5b92ae1..1f6bd569a73 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns/CheckRunId.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns/CheckRunId.php @@ -4,13 +4,13 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\CheckRuns; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\CheckRun; use ApiClients\Client\GitHubEnterprise\Schema\CheckRun\CheckSuite; use ApiClients\Client\GitHubEnterprise\Schema\CheckRun\Output; use ApiClients\Client\GitHubEnterprise\Schema\DeploymentSimple; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterprise\Schema\SimpleUser; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -50,7 +50,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\CheckRun\Output' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRun⚡️Output($payload), 'ApiClients\Client\GitHubEnterprise\Schema\CheckRun\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRun⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\DeploymentSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️DeploymentSimple($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -444,17 +443,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -616,267 +619,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - - $value = $payload['user_view_type'] ?? null; - - if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; - } - - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -1168,7 +910,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\CheckRun\Output' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRun⚡️Output($object), 'ApiClients\Client\GitHubEnterprise\Schema\CheckRun\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRun⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\DeploymentSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️DeploymentSimple($object), default => throw new LogicException("No serialization defined for $className"), @@ -1417,12 +1158,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -1497,105 +1236,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php index 1700eef609d..ed90172b5e3 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\CheckSuite; use ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct; use ApiClients\Client\GitHubEnterprise\Schema\Integration; @@ -56,9 +57,9 @@ public function hydrateObject(string $className, array $payload): object return match ($className) { 'ApiClients\Client\GitHubEnterprise\Schema\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($payload), @@ -370,17 +371,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -542,44 +547,85 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $properties['name'] = null; - goto after_name; + $properties['issues'] = null; + goto after_issues; } - $properties['name'] = $value; + $properties['issues'] = $value; - after_name: + after_issues: - $value = $payload['email'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['checks'] = null; + goto after_checks; } - $properties['email'] = $value; + $properties['checks'] = $value; - after_email: + after_checks: - $value = $payload['login'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $properties['metadata'] = null; + goto after_metadata; } - $properties['login'] = $value; + $properties['metadata'] = $value; - after_login: + after_metadata: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $properties['contents'] = null; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $properties['deployments'] = null; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository + { + $properties = []; + $missingFields = []; + try { $value = $payload['id'] ?? null; if ($value === null) { @@ -602,38 +648,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_nodeId: - $value = $payload['avatar_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; + $missingFields[] = 'name'; + goto after_name; } - $properties['avatarUrl'] = $value; + $properties['name'] = $value; - after_avatarUrl: + after_name: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; + $missingFields[] = 'full_name'; + goto after_fullName; } - $properties['gravatarId'] = $value; + $properties['fullName'] = $value; - after_gravatarId: + after_fullName: - $value = $payload['url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_url: + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: $value = $payload['html_url'] ?? null; @@ -646,1255 +712,1194 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_htmlUrl: - $value = $payload['followers_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; + $properties['description'] = null; + goto after_description; } - $properties['followersUrl'] = $value; + $properties['description'] = $value; - after_followersUrl: + after_description: - $value = $payload['following_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['followingUrl'] = $value; + $properties['fork'] = $value; - after_followingUrl: + after_fork: - $value = $payload['gists_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; + $missingFields[] = 'url'; + goto after_url; } - $properties['gistsUrl'] = $value; + $properties['url'] = $value; - after_gistsUrl: + after_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; + $missingFields[] = 'archive_url'; + goto after_archiveUrl; } - $properties['starredUrl'] = $value; + $properties['archiveUrl'] = $value; - after_starredUrl: + after_archiveUrl: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; } - $properties['subscriptionsUrl'] = $value; + $properties['assigneesUrl'] = $value; - after_subscriptionsUrl: + after_assigneesUrl: - $value = $payload['organizations_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; } - $properties['organizationsUrl'] = $value; + $properties['blobsUrl'] = $value; - after_organizationsUrl: + after_blobsUrl: - $value = $payload['repos_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; + $missingFields[] = 'branches_url'; + goto after_branchesUrl; } - $properties['reposUrl'] = $value; + $properties['branchesUrl'] = $value; - after_reposUrl: + after_branchesUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; } - $properties['eventsUrl'] = $value; + $properties['collaboratorsUrl'] = $value; - after_eventsUrl: + after_collaboratorsUrl: - $value = $payload['received_events_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; + $missingFields[] = 'comments_url'; + goto after_commentsUrl; } - $properties['receivedEventsUrl'] = $value; + $properties['commentsUrl'] = $value; - after_receivedEventsUrl: + after_commentsUrl: - $value = $payload['type'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'commits_url'; + goto after_commitsUrl; } - $properties['type'] = $value; + $properties['commitsUrl'] = $value; - after_type: + after_commitsUrl: - $value = $payload['site_admin'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; + $missingFields[] = 'compare_url'; + goto after_compareUrl; } - $properties['siteAdmin'] = $value; + $properties['compareUrl'] = $value; - after_siteAdmin: + after_compareUrl: - $value = $payload['starred_at'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $missingFields[] = 'contents_url'; + goto after_contentsUrl; } - $properties['starredAt'] = $value; + $properties['contentsUrl'] = $value; - after_starredAt: + after_contentsUrl: - $value = $payload['user_view_type'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; } - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } + $properties['contributorsUrl'] = $value; - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_contributorsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions - { - $properties = []; - $missingFields = []; - try { - $value = $payload['issues'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $properties['issues'] = null; - goto after_issues; + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; } - $properties['issues'] = $value; + $properties['deploymentsUrl'] = $value; - after_issues: + after_deploymentsUrl: - $value = $payload['checks'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $properties['checks'] = null; - goto after_checks; + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; } - $properties['checks'] = $value; + $properties['downloadsUrl'] = $value; - after_checks: + after_downloadsUrl: - $value = $payload['metadata'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $properties['metadata'] = null; - goto after_metadata; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['metadata'] = $value; + $properties['eventsUrl'] = $value; - after_metadata: + after_eventsUrl: - $value = $payload['contents'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $properties['contents'] = null; - goto after_contents; + $missingFields[] = 'forks_url'; + goto after_forksUrl; } - $properties['contents'] = $value; + $properties['forksUrl'] = $value; - after_contents: + after_forksUrl: - $value = $payload['deployments'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $properties['deployments'] = null; - goto after_deployments; + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; } - $properties['deployments'] = $value; - - after_deployments: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); - } + $properties['gitCommitsUrl'] = $value; - try { - return new Permissions(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_gitCommitsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository - { - $properties = []; - $missingFields = []; - try { - $value = $payload['id'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; } - $properties['id'] = $value; + $properties['gitRefsUrl'] = $value; - after_id: + after_gitRefsUrl: - $value = $payload['node_id'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; } - $properties['nodeId'] = $value; + $properties['gitTagsUrl'] = $value; - after_nodeId: + after_gitTagsUrl: - $value = $payload['name'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $properties['gitUrl'] = null; + goto after_gitUrl; } - $properties['name'] = $value; + $properties['gitUrl'] = $value; - after_name: + after_gitUrl: - $value = $payload['full_name'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_fullName; + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; } - $properties['fullName'] = $value; + $properties['issueCommentUrl'] = $value; - after_fullName: + after_issueCommentUrl: - $value = $payload['owner'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; } - $properties['owner'] = $value; + $properties['issueEventsUrl'] = $value; - after_owner: + after_issueEventsUrl: - $value = $payload['private'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'issues_url'; + goto after_issuesUrl; } - $properties['private'] = $value; + $properties['issuesUrl'] = $value; - after_private: + after_issuesUrl: - $value = $payload['html_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; + $missingFields[] = 'keys_url'; + goto after_keysUrl; } - $properties['htmlUrl'] = $value; + $properties['keysUrl'] = $value; - after_htmlUrl: + after_keysUrl: - $value = $payload['description'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $properties['description'] = null; - goto after_description; + $missingFields[] = 'labels_url'; + goto after_labelsUrl; } - $properties['description'] = $value; + $properties['labelsUrl'] = $value; - after_description: + after_labelsUrl: - $value = $payload['fork'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'languages_url'; + goto after_languagesUrl; } - $properties['fork'] = $value; + $properties['languagesUrl'] = $value; - after_fork: + after_languagesUrl: - $value = $payload['url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'merges_url'; + goto after_mergesUrl; } - $properties['url'] = $value; + $properties['mergesUrl'] = $value; - after_url: + after_mergesUrl: - $value = $payload['archive_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archiveUrl; + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; } - $properties['archiveUrl'] = $value; + $properties['milestonesUrl'] = $value; - after_archiveUrl: + after_milestonesUrl: - $value = $payload['assignees_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assigneesUrl; + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; } - $properties['assigneesUrl'] = $value; + $properties['notificationsUrl'] = $value; - after_assigneesUrl: + after_notificationsUrl: - $value = $payload['blobs_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobsUrl; + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; } - $properties['blobsUrl'] = $value; + $properties['pullsUrl'] = $value; - after_blobsUrl: + after_pullsUrl: - $value = $payload['branches_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branchesUrl; + $missingFields[] = 'releases_url'; + goto after_releasesUrl; } - $properties['branchesUrl'] = $value; + $properties['releasesUrl'] = $value; - after_branchesUrl: + after_releasesUrl: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaboratorsUrl; + $properties['sshUrl'] = null; + goto after_sshUrl; } - $properties['collaboratorsUrl'] = $value; + $properties['sshUrl'] = $value; - after_collaboratorsUrl: + after_sshUrl: - $value = $payload['comments_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_commentsUrl; + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; } - $properties['commentsUrl'] = $value; + $properties['stargazersUrl'] = $value; - after_commentsUrl: + after_stargazersUrl: - $value = $payload['commits_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commitsUrl; + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; } - $properties['commitsUrl'] = $value; + $properties['statusesUrl'] = $value; - after_commitsUrl: + after_statusesUrl: - $value = $payload['compare_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compareUrl; + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; } - $properties['compareUrl'] = $value; + $properties['subscribersUrl'] = $value; - after_compareUrl: + after_subscribersUrl: - $value = $payload['contents_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contentsUrl; + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; } - $properties['contentsUrl'] = $value; + $properties['subscriptionUrl'] = $value; - after_contentsUrl: + after_subscriptionUrl: - $value = $payload['contributors_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributorsUrl; + $missingFields[] = 'tags_url'; + goto after_tagsUrl; } - $properties['contributorsUrl'] = $value; + $properties['tagsUrl'] = $value; - after_contributorsUrl: + after_tagsUrl: - $value = $payload['deployments_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deploymentsUrl; + $missingFields[] = 'teams_url'; + goto after_teamsUrl; } - $properties['deploymentsUrl'] = $value; + $properties['teamsUrl'] = $value; - after_deploymentsUrl: + after_teamsUrl: - $value = $payload['downloads_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloadsUrl; + $missingFields[] = 'trees_url'; + goto after_treesUrl; } - $properties['downloadsUrl'] = $value; + $properties['treesUrl'] = $value; - after_downloadsUrl: + after_treesUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $properties['cloneUrl'] = null; + goto after_cloneUrl; } - $properties['eventsUrl'] = $value; + $properties['cloneUrl'] = $value; - after_eventsUrl: + after_cloneUrl: - $value = $payload['forks_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forksUrl; + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; } - $properties['forksUrl'] = $value; + $properties['mirrorUrl'] = $value; - after_forksUrl: + after_mirrorUrl: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_gitCommitsUrl; + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; } - $properties['gitCommitsUrl'] = $value; + $properties['hooksUrl'] = $value; - after_gitCommitsUrl: + after_hooksUrl: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_gitRefsUrl; + $properties['svnUrl'] = null; + goto after_svnUrl; } - $properties['gitRefsUrl'] = $value; + $properties['svnUrl'] = $value; - after_gitRefsUrl: + after_svnUrl: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_gitTagsUrl; + $properties['homepage'] = null; + goto after_homepage; } - $properties['gitTagsUrl'] = $value; + $properties['homepage'] = $value; - after_gitTagsUrl: + after_homepage: - $value = $payload['git_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $properties['gitUrl'] = null; - goto after_gitUrl; + $properties['language'] = null; + goto after_language; } - $properties['gitUrl'] = $value; + $properties['language'] = $value; - after_gitUrl: + after_language: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issueCommentUrl; + $properties['forksCount'] = null; + goto after_forksCount; } - $properties['issueCommentUrl'] = $value; + $properties['forksCount'] = $value; - after_issueCommentUrl: + after_forksCount: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issueEventsUrl; + $properties['stargazersCount'] = null; + goto after_stargazersCount; } - $properties['issueEventsUrl'] = $value; + $properties['stargazersCount'] = $value; - after_issueEventsUrl: + after_stargazersCount: - $value = $payload['issues_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issuesUrl; + $properties['watchersCount'] = null; + goto after_watchersCount; } - $properties['issuesUrl'] = $value; + $properties['watchersCount'] = $value; - after_issuesUrl: + after_watchersCount: - $value = $payload['keys_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keysUrl; + $properties['size'] = null; + goto after_size; } - $properties['keysUrl'] = $value; + $properties['size'] = $value; - after_keysUrl: + after_size: - $value = $payload['labels_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labelsUrl; + $properties['defaultBranch'] = null; + goto after_defaultBranch; } - $properties['labelsUrl'] = $value; + $properties['defaultBranch'] = $value; - after_labelsUrl: + after_defaultBranch: - $value = $payload['languages_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languagesUrl; + $properties['openIssuesCount'] = null; + goto after_openIssuesCount; } - $properties['languagesUrl'] = $value; + $properties['openIssuesCount'] = $value; - after_languagesUrl: + after_openIssuesCount: - $value = $payload['merges_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_mergesUrl; + $properties['isTemplate'] = null; + goto after_isTemplate; } - $properties['mergesUrl'] = $value; + $properties['isTemplate'] = $value; - after_mergesUrl: + after_isTemplate: - $value = $payload['milestones_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestonesUrl; + $properties['topics'] = null; + goto after_topics; } - $properties['milestonesUrl'] = $value; + $properties['topics'] = $value; - after_milestonesUrl: + after_topics: - $value = $payload['notifications_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notificationsUrl; + $properties['hasIssues'] = null; + goto after_hasIssues; } - $properties['notificationsUrl'] = $value; + $properties['hasIssues'] = $value; - after_notificationsUrl: + after_hasIssues: - $value = $payload['pulls_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pullsUrl; + $properties['hasProjects'] = null; + goto after_hasProjects; } - $properties['pullsUrl'] = $value; + $properties['hasProjects'] = $value; - after_pullsUrl: + after_hasProjects: - $value = $payload['releases_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releasesUrl; + $properties['hasWiki'] = null; + goto after_hasWiki; } - $properties['releasesUrl'] = $value; + $properties['hasWiki'] = $value; - after_releasesUrl: + after_hasWiki: - $value = $payload['ssh_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $properties['sshUrl'] = null; - goto after_sshUrl; + $properties['hasPages'] = null; + goto after_hasPages; } - $properties['sshUrl'] = $value; + $properties['hasPages'] = $value; - after_sshUrl: + after_hasPages: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazersUrl; + $properties['hasDownloads'] = null; + goto after_hasDownloads; } - $properties['stargazersUrl'] = $value; + $properties['hasDownloads'] = $value; - after_stargazersUrl: + after_hasDownloads: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statusesUrl; + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; } - $properties['statusesUrl'] = $value; + $properties['hasDiscussions'] = $value; - after_statusesUrl: + after_hasDiscussions: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribersUrl; + $properties['archived'] = null; + goto after_archived; } - $properties['subscribersUrl'] = $value; + $properties['archived'] = $value; - after_subscribersUrl: + after_archived: - $value = $payload['subscription_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscriptionUrl; + $properties['disabled'] = null; + goto after_disabled; } - $properties['subscriptionUrl'] = $value; + $properties['disabled'] = $value; - after_subscriptionUrl: + after_disabled: - $value = $payload['tags_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tagsUrl; + $properties['visibility'] = null; + goto after_visibility; } - $properties['tagsUrl'] = $value; + $properties['visibility'] = $value; - after_tagsUrl: + after_visibility: - $value = $payload['teams_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teamsUrl; + $properties['pushedAt'] = null; + goto after_pushedAt; } - $properties['teamsUrl'] = $value; + $properties['pushedAt'] = $value; - after_teamsUrl: + after_pushedAt: - $value = $payload['trees_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_treesUrl; + $properties['createdAt'] = null; + goto after_createdAt; } - $properties['treesUrl'] = $value; + $properties['createdAt'] = $value; - after_treesUrl: + after_createdAt: - $value = $payload['clone_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $properties['cloneUrl'] = null; - goto after_cloneUrl; + $properties['updatedAt'] = null; + goto after_updatedAt; } - $properties['cloneUrl'] = $value; + $properties['updatedAt'] = $value; - after_cloneUrl: + after_updatedAt: - $value = $payload['mirror_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $properties['mirrorUrl'] = null; - goto after_mirrorUrl; + $properties['permissions'] = null; + goto after_permissions; } - $properties['mirrorUrl'] = $value; - - after_mirrorUrl: - - $value = $payload['hooks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooksUrl; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['hooksUrl'] = $value; + $properties['permissions'] = $value; - after_hooksUrl: + after_permissions: - $value = $payload['svn_url'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $properties['svnUrl'] = null; - goto after_svnUrl; + $properties['roleName'] = null; + goto after_roleName; } - $properties['svnUrl'] = $value; + $properties['roleName'] = $value; - after_svnUrl: + after_roleName: - $value = $payload['homepage'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $properties['homepage'] = null; - goto after_homepage; + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; } - $properties['homepage'] = $value; + $properties['tempCloneToken'] = $value; - after_homepage: + after_tempCloneToken: - $value = $payload['language'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $properties['language'] = null; - goto after_language; + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; } - $properties['language'] = $value; + $properties['deleteBranchOnMerge'] = $value; - after_language: + after_deleteBranchOnMerge: - $value = $payload['forks_count'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $properties['forksCount'] = null; - goto after_forksCount; + $properties['subscribersCount'] = null; + goto after_subscribersCount; } - $properties['forksCount'] = $value; + $properties['subscribersCount'] = $value; - after_forksCount: + after_subscribersCount: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $properties['stargazersCount'] = null; - goto after_stargazersCount; + $properties['networkCount'] = null; + goto after_networkCount; } - $properties['stargazersCount'] = $value; + $properties['networkCount'] = $value; - after_stargazersCount: + after_networkCount: - $value = $payload['watchers_count'] ?? null; + $value = $payload['code_of_conduct'] ?? null; if ($value === null) { - $properties['watchersCount'] = null; - goto after_watchersCount; + $properties['codeOfConduct'] = null; + goto after_codeOfConduct; } - $properties['watchersCount'] = $value; - - after_watchersCount: - - $value = $payload['size'] ?? null; - - if ($value === null) { - $properties['size'] = null; - goto after_size; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'codeOfConduct'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['size'] = $value; + $properties['codeOfConduct'] = $value; - after_size: + after_codeOfConduct: - $value = $payload['default_branch'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $properties['defaultBranch'] = null; - goto after_defaultBranch; + $properties['license'] = null; + goto after_license; } - $properties['defaultBranch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_defaultBranch: + $properties['license'] = $value; - $value = $payload['open_issues_count'] ?? null; + after_license: + + $value = $payload['forks'] ?? null; if ($value === null) { - $properties['openIssuesCount'] = null; - goto after_openIssuesCount; + $properties['forks'] = null; + goto after_forks; } - $properties['openIssuesCount'] = $value; + $properties['forks'] = $value; - after_openIssuesCount: + after_forks: - $value = $payload['is_template'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $properties['isTemplate'] = null; - goto after_isTemplate; + $properties['openIssues'] = null; + goto after_openIssues; } - $properties['isTemplate'] = $value; + $properties['openIssues'] = $value; - after_isTemplate: + after_openIssues: - $value = $payload['topics'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $properties['topics'] = null; - goto after_topics; + $properties['watchers'] = null; + goto after_watchers; } - $properties['topics'] = $value; + $properties['watchers'] = $value; - after_topics: + after_watchers: - $value = $payload['has_issues'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $properties['hasIssues'] = null; - goto after_hasIssues; + $properties['allowForking'] = null; + goto after_allowForking; } - $properties['hasIssues'] = $value; + $properties['allowForking'] = $value; - after_hasIssues: + after_allowForking: - $value = $payload['has_projects'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $properties['hasProjects'] = null; - goto after_hasProjects; + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; } - $properties['hasProjects'] = $value; + $properties['webCommitSignoffRequired'] = $value; - after_hasProjects: + after_webCommitSignoffRequired: - $value = $payload['has_wiki'] ?? null; + $value = $payload['security_and_analysis'] ?? null; if ($value === null) { - $properties['hasWiki'] = null; - goto after_hasWiki; + $properties['securityAndAnalysis'] = null; + goto after_securityAndAnalysis; } - $properties['hasWiki'] = $value; - - after_hasWiki: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'securityAndAnalysis'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAndAnalysis($value); + } finally { + array_pop($this->hydrationStack); + } + } - $value = $payload['has_pages'] ?? null; + $properties['securityAndAnalysis'] = $value; - if ($value === null) { - $properties['hasPages'] = null; - goto after_hasPages; - } + after_securityAndAnalysis: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } - $properties['hasPages'] = $value; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + } - after_hasPages: + try { + return new MinimalRepository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['has_downloads'] ?? null; + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; if ($value === null) { - $properties['hasDownloads'] = null; - goto after_hasDownloads; + $properties['name'] = null; + goto after_name; } - $properties['hasDownloads'] = $value; + $properties['name'] = $value; - after_hasDownloads: + after_name: - $value = $payload['has_discussions'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $properties['hasDiscussions'] = null; - goto after_hasDiscussions; + $properties['email'] = null; + goto after_email; } - $properties['hasDiscussions'] = $value; + $properties['email'] = $value; - after_hasDiscussions: + after_email: - $value = $payload['archived'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $properties['archived'] = null; - goto after_archived; + $missingFields[] = 'login'; + goto after_login; } - $properties['archived'] = $value; + $properties['login'] = $value; - after_archived: + after_login: - $value = $payload['disabled'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['disabled'] = null; - goto after_disabled; + $missingFields[] = 'id'; + goto after_id; } - $properties['disabled'] = $value; + $properties['id'] = $value; - after_disabled: + after_id: - $value = $payload['visibility'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['visibility'] = null; - goto after_visibility; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['visibility'] = $value; + $properties['nodeId'] = $value; - after_visibility: + after_nodeId: - $value = $payload['pushed_at'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $properties['pushedAt'] = null; - goto after_pushedAt; + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; } - $properties['pushedAt'] = $value; + $properties['avatarUrl'] = $value; - after_pushedAt: + after_avatarUrl: - $value = $payload['created_at'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['createdAt'] = null; - goto after_createdAt; + $properties['gravatarId'] = null; + goto after_gravatarId; } - $properties['createdAt'] = $value; + $properties['gravatarId'] = $value; - after_createdAt: + after_gravatarId: - $value = $payload['updated_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['updatedAt'] = null; - goto after_updatedAt; + $missingFields[] = 'url'; + goto after_url; } - $properties['updatedAt'] = $value; + $properties['url'] = $value; - after_updatedAt: + after_url: - $value = $payload['permissions'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['permissions'] = null; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['permissions'] = $value; + $properties['htmlUrl'] = $value; - after_permissions: + after_htmlUrl: - $value = $payload['role_name'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $properties['roleName'] = null; - goto after_roleName; + $missingFields[] = 'followers_url'; + goto after_followersUrl; } - $properties['roleName'] = $value; + $properties['followersUrl'] = $value; - after_roleName: + after_followersUrl: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $properties['tempCloneToken'] = null; - goto after_tempCloneToken; + $missingFields[] = 'following_url'; + goto after_followingUrl; } - $properties['tempCloneToken'] = $value; + $properties['followingUrl'] = $value; - after_tempCloneToken: + after_followingUrl: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $properties['deleteBranchOnMerge'] = null; - goto after_deleteBranchOnMerge; + $missingFields[] = 'gists_url'; + goto after_gistsUrl; } - $properties['deleteBranchOnMerge'] = $value; + $properties['gistsUrl'] = $value; - after_deleteBranchOnMerge: + after_gistsUrl: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $properties['subscribersCount'] = null; - goto after_subscribersCount; + $missingFields[] = 'starred_url'; + goto after_starredUrl; } - $properties['subscribersCount'] = $value; + $properties['starredUrl'] = $value; - after_subscribersCount: + after_starredUrl: - $value = $payload['network_count'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $properties['networkCount'] = null; - goto after_networkCount; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; } - $properties['networkCount'] = $value; + $properties['subscriptionsUrl'] = $value; - after_networkCount: + after_subscriptionsUrl: - $value = $payload['code_of_conduct'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $properties['codeOfConduct'] = null; - goto after_codeOfConduct; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'codeOfConduct'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; } - $properties['codeOfConduct'] = $value; + $properties['organizationsUrl'] = $value; - after_codeOfConduct: + after_organizationsUrl: - $value = $payload['license'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'repos_url'; + goto after_reposUrl; } - $properties['license'] = $value; + $properties['reposUrl'] = $value; - after_license: + after_reposUrl: - $value = $payload['forks'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $properties['forks'] = null; - goto after_forks; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['forks'] = $value; + $properties['eventsUrl'] = $value; - after_forks: + after_eventsUrl: - $value = $payload['open_issues'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $properties['openIssues'] = null; - goto after_openIssues; + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; } - $properties['openIssues'] = $value; + $properties['receivedEventsUrl'] = $value; - after_openIssues: + after_receivedEventsUrl: - $value = $payload['watchers'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $properties['watchers'] = null; - goto after_watchers; + $missingFields[] = 'type'; + goto after_type; } - $properties['watchers'] = $value; + $properties['type'] = $value; - after_watchers: + after_type: - $value = $payload['allow_forking'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $properties['allowForking'] = null; - goto after_allowForking; + $missingFields[] = 'site_admin'; + goto after_siteAdmin; } - $properties['allowForking'] = $value; + $properties['siteAdmin'] = $value; - after_allowForking: + after_siteAdmin: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $properties['webCommitSignoffRequired'] = null; - goto after_webCommitSignoffRequired; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['webCommitSignoffRequired'] = $value; + $properties['starredAt'] = $value; - after_webCommitSignoffRequired: + after_starredAt: - $value = $payload['security_and_analysis'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $properties['securityAndAnalysis'] = null; - goto after_securityAndAnalysis; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'securityAndAnalysis'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAndAnalysis($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['securityAndAnalysis'] = $value; + $properties['userViewType'] = $value; - after_securityAndAnalysis: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new MinimalRepository(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -2557,9 +2562,9 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterprise\Schema\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository($object), + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($object), @@ -2788,12 +2793,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -2868,105 +2871,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); @@ -3506,6 +3410,105 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php index f88feeecff4..7b7fc88defa 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\CheckSuites; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\CheckSuite; use ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct; use ApiClients\Client\GitHubEnterprise\Schema\Integration; @@ -56,9 +57,9 @@ public function hydrateObject(string $className, array $payload): object return match ($className) { 'ApiClients\Client\GitHubEnterprise\Schema\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($payload), @@ -370,17 +371,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -542,44 +547,85 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $properties['name'] = null; - goto after_name; + $properties['issues'] = null; + goto after_issues; } - $properties['name'] = $value; + $properties['issues'] = $value; - after_name: + after_issues: - $value = $payload['email'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['checks'] = null; + goto after_checks; } - $properties['email'] = $value; + $properties['checks'] = $value; - after_email: + after_checks: - $value = $payload['login'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $properties['metadata'] = null; + goto after_metadata; } - $properties['login'] = $value; + $properties['metadata'] = $value; - after_login: + after_metadata: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $properties['contents'] = null; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $properties['deployments'] = null; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository + { + $properties = []; + $missingFields = []; + try { $value = $payload['id'] ?? null; if ($value === null) { @@ -602,38 +648,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_nodeId: - $value = $payload['avatar_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; + $missingFields[] = 'name'; + goto after_name; } - $properties['avatarUrl'] = $value; + $properties['name'] = $value; - after_avatarUrl: + after_name: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; + $missingFields[] = 'full_name'; + goto after_fullName; } - $properties['gravatarId'] = $value; + $properties['fullName'] = $value; - after_gravatarId: + after_fullName: - $value = $payload['url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_url: + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: $value = $payload['html_url'] ?? null; @@ -646,1255 +712,1194 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_htmlUrl: - $value = $payload['followers_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; + $properties['description'] = null; + goto after_description; } - $properties['followersUrl'] = $value; + $properties['description'] = $value; - after_followersUrl: + after_description: - $value = $payload['following_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['followingUrl'] = $value; + $properties['fork'] = $value; - after_followingUrl: + after_fork: - $value = $payload['gists_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; + $missingFields[] = 'url'; + goto after_url; } - $properties['gistsUrl'] = $value; + $properties['url'] = $value; - after_gistsUrl: + after_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; + $missingFields[] = 'archive_url'; + goto after_archiveUrl; } - $properties['starredUrl'] = $value; + $properties['archiveUrl'] = $value; - after_starredUrl: + after_archiveUrl: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; } - $properties['subscriptionsUrl'] = $value; + $properties['assigneesUrl'] = $value; - after_subscriptionsUrl: + after_assigneesUrl: - $value = $payload['organizations_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; } - $properties['organizationsUrl'] = $value; + $properties['blobsUrl'] = $value; - after_organizationsUrl: + after_blobsUrl: - $value = $payload['repos_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; + $missingFields[] = 'branches_url'; + goto after_branchesUrl; } - $properties['reposUrl'] = $value; + $properties['branchesUrl'] = $value; - after_reposUrl: + after_branchesUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; } - $properties['eventsUrl'] = $value; + $properties['collaboratorsUrl'] = $value; - after_eventsUrl: + after_collaboratorsUrl: - $value = $payload['received_events_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; + $missingFields[] = 'comments_url'; + goto after_commentsUrl; } - $properties['receivedEventsUrl'] = $value; + $properties['commentsUrl'] = $value; - after_receivedEventsUrl: + after_commentsUrl: - $value = $payload['type'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'commits_url'; + goto after_commitsUrl; } - $properties['type'] = $value; + $properties['commitsUrl'] = $value; - after_type: + after_commitsUrl: - $value = $payload['site_admin'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; + $missingFields[] = 'compare_url'; + goto after_compareUrl; } - $properties['siteAdmin'] = $value; + $properties['compareUrl'] = $value; - after_siteAdmin: + after_compareUrl: - $value = $payload['starred_at'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $missingFields[] = 'contents_url'; + goto after_contentsUrl; } - $properties['starredAt'] = $value; + $properties['contentsUrl'] = $value; - after_starredAt: + after_contentsUrl: - $value = $payload['user_view_type'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; } - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } + $properties['contributorsUrl'] = $value; - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_contributorsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions - { - $properties = []; - $missingFields = []; - try { - $value = $payload['issues'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $properties['issues'] = null; - goto after_issues; + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; } - $properties['issues'] = $value; + $properties['deploymentsUrl'] = $value; - after_issues: + after_deploymentsUrl: - $value = $payload['checks'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $properties['checks'] = null; - goto after_checks; + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; } - $properties['checks'] = $value; + $properties['downloadsUrl'] = $value; - after_checks: + after_downloadsUrl: - $value = $payload['metadata'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $properties['metadata'] = null; - goto after_metadata; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['metadata'] = $value; + $properties['eventsUrl'] = $value; - after_metadata: + after_eventsUrl: - $value = $payload['contents'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $properties['contents'] = null; - goto after_contents; + $missingFields[] = 'forks_url'; + goto after_forksUrl; } - $properties['contents'] = $value; + $properties['forksUrl'] = $value; - after_contents: + after_forksUrl: - $value = $payload['deployments'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $properties['deployments'] = null; - goto after_deployments; + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; } - $properties['deployments'] = $value; - - after_deployments: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); - } + $properties['gitCommitsUrl'] = $value; - try { - return new Permissions(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_gitCommitsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository - { - $properties = []; - $missingFields = []; - try { - $value = $payload['id'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; } - $properties['id'] = $value; + $properties['gitRefsUrl'] = $value; - after_id: + after_gitRefsUrl: - $value = $payload['node_id'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; } - $properties['nodeId'] = $value; + $properties['gitTagsUrl'] = $value; - after_nodeId: + after_gitTagsUrl: - $value = $payload['name'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $properties['gitUrl'] = null; + goto after_gitUrl; } - $properties['name'] = $value; + $properties['gitUrl'] = $value; - after_name: + after_gitUrl: - $value = $payload['full_name'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_fullName; + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; } - $properties['fullName'] = $value; + $properties['issueCommentUrl'] = $value; - after_fullName: + after_issueCommentUrl: - $value = $payload['owner'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; } - $properties['owner'] = $value; + $properties['issueEventsUrl'] = $value; - after_owner: + after_issueEventsUrl: - $value = $payload['private'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'issues_url'; + goto after_issuesUrl; } - $properties['private'] = $value; + $properties['issuesUrl'] = $value; - after_private: + after_issuesUrl: - $value = $payload['html_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; + $missingFields[] = 'keys_url'; + goto after_keysUrl; } - $properties['htmlUrl'] = $value; + $properties['keysUrl'] = $value; - after_htmlUrl: + after_keysUrl: - $value = $payload['description'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $properties['description'] = null; - goto after_description; + $missingFields[] = 'labels_url'; + goto after_labelsUrl; } - $properties['description'] = $value; + $properties['labelsUrl'] = $value; - after_description: + after_labelsUrl: - $value = $payload['fork'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'languages_url'; + goto after_languagesUrl; } - $properties['fork'] = $value; + $properties['languagesUrl'] = $value; - after_fork: + after_languagesUrl: - $value = $payload['url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'merges_url'; + goto after_mergesUrl; } - $properties['url'] = $value; + $properties['mergesUrl'] = $value; - after_url: + after_mergesUrl: - $value = $payload['archive_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archiveUrl; + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; } - $properties['archiveUrl'] = $value; + $properties['milestonesUrl'] = $value; - after_archiveUrl: + after_milestonesUrl: - $value = $payload['assignees_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assigneesUrl; + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; } - $properties['assigneesUrl'] = $value; + $properties['notificationsUrl'] = $value; - after_assigneesUrl: + after_notificationsUrl: - $value = $payload['blobs_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobsUrl; + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; } - $properties['blobsUrl'] = $value; + $properties['pullsUrl'] = $value; - after_blobsUrl: + after_pullsUrl: - $value = $payload['branches_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branchesUrl; + $missingFields[] = 'releases_url'; + goto after_releasesUrl; } - $properties['branchesUrl'] = $value; + $properties['releasesUrl'] = $value; - after_branchesUrl: + after_releasesUrl: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaboratorsUrl; + $properties['sshUrl'] = null; + goto after_sshUrl; } - $properties['collaboratorsUrl'] = $value; + $properties['sshUrl'] = $value; - after_collaboratorsUrl: + after_sshUrl: - $value = $payload['comments_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_commentsUrl; + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; } - $properties['commentsUrl'] = $value; + $properties['stargazersUrl'] = $value; - after_commentsUrl: + after_stargazersUrl: - $value = $payload['commits_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commitsUrl; + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; } - $properties['commitsUrl'] = $value; + $properties['statusesUrl'] = $value; - after_commitsUrl: + after_statusesUrl: - $value = $payload['compare_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compareUrl; + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; } - $properties['compareUrl'] = $value; + $properties['subscribersUrl'] = $value; - after_compareUrl: + after_subscribersUrl: - $value = $payload['contents_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contentsUrl; + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; } - $properties['contentsUrl'] = $value; + $properties['subscriptionUrl'] = $value; - after_contentsUrl: + after_subscriptionUrl: - $value = $payload['contributors_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributorsUrl; + $missingFields[] = 'tags_url'; + goto after_tagsUrl; } - $properties['contributorsUrl'] = $value; + $properties['tagsUrl'] = $value; - after_contributorsUrl: + after_tagsUrl: - $value = $payload['deployments_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deploymentsUrl; + $missingFields[] = 'teams_url'; + goto after_teamsUrl; } - $properties['deploymentsUrl'] = $value; + $properties['teamsUrl'] = $value; - after_deploymentsUrl: + after_teamsUrl: - $value = $payload['downloads_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloadsUrl; + $missingFields[] = 'trees_url'; + goto after_treesUrl; } - $properties['downloadsUrl'] = $value; + $properties['treesUrl'] = $value; - after_downloadsUrl: + after_treesUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $properties['cloneUrl'] = null; + goto after_cloneUrl; } - $properties['eventsUrl'] = $value; + $properties['cloneUrl'] = $value; - after_eventsUrl: + after_cloneUrl: - $value = $payload['forks_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forksUrl; + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; } - $properties['forksUrl'] = $value; + $properties['mirrorUrl'] = $value; - after_forksUrl: + after_mirrorUrl: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_gitCommitsUrl; + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; } - $properties['gitCommitsUrl'] = $value; + $properties['hooksUrl'] = $value; - after_gitCommitsUrl: + after_hooksUrl: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_gitRefsUrl; + $properties['svnUrl'] = null; + goto after_svnUrl; } - $properties['gitRefsUrl'] = $value; + $properties['svnUrl'] = $value; - after_gitRefsUrl: + after_svnUrl: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_gitTagsUrl; + $properties['homepage'] = null; + goto after_homepage; } - $properties['gitTagsUrl'] = $value; + $properties['homepage'] = $value; - after_gitTagsUrl: + after_homepage: - $value = $payload['git_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $properties['gitUrl'] = null; - goto after_gitUrl; + $properties['language'] = null; + goto after_language; } - $properties['gitUrl'] = $value; + $properties['language'] = $value; - after_gitUrl: + after_language: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issueCommentUrl; + $properties['forksCount'] = null; + goto after_forksCount; } - $properties['issueCommentUrl'] = $value; + $properties['forksCount'] = $value; - after_issueCommentUrl: + after_forksCount: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issueEventsUrl; + $properties['stargazersCount'] = null; + goto after_stargazersCount; } - $properties['issueEventsUrl'] = $value; + $properties['stargazersCount'] = $value; - after_issueEventsUrl: + after_stargazersCount: - $value = $payload['issues_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issuesUrl; + $properties['watchersCount'] = null; + goto after_watchersCount; } - $properties['issuesUrl'] = $value; + $properties['watchersCount'] = $value; - after_issuesUrl: + after_watchersCount: - $value = $payload['keys_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keysUrl; + $properties['size'] = null; + goto after_size; } - $properties['keysUrl'] = $value; + $properties['size'] = $value; - after_keysUrl: + after_size: - $value = $payload['labels_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labelsUrl; + $properties['defaultBranch'] = null; + goto after_defaultBranch; } - $properties['labelsUrl'] = $value; + $properties['defaultBranch'] = $value; - after_labelsUrl: + after_defaultBranch: - $value = $payload['languages_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languagesUrl; + $properties['openIssuesCount'] = null; + goto after_openIssuesCount; } - $properties['languagesUrl'] = $value; + $properties['openIssuesCount'] = $value; - after_languagesUrl: + after_openIssuesCount: - $value = $payload['merges_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_mergesUrl; + $properties['isTemplate'] = null; + goto after_isTemplate; } - $properties['mergesUrl'] = $value; + $properties['isTemplate'] = $value; - after_mergesUrl: + after_isTemplate: - $value = $payload['milestones_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestonesUrl; + $properties['topics'] = null; + goto after_topics; } - $properties['milestonesUrl'] = $value; + $properties['topics'] = $value; - after_milestonesUrl: + after_topics: - $value = $payload['notifications_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notificationsUrl; + $properties['hasIssues'] = null; + goto after_hasIssues; } - $properties['notificationsUrl'] = $value; + $properties['hasIssues'] = $value; - after_notificationsUrl: + after_hasIssues: - $value = $payload['pulls_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pullsUrl; + $properties['hasProjects'] = null; + goto after_hasProjects; } - $properties['pullsUrl'] = $value; + $properties['hasProjects'] = $value; - after_pullsUrl: + after_hasProjects: - $value = $payload['releases_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releasesUrl; + $properties['hasWiki'] = null; + goto after_hasWiki; } - $properties['releasesUrl'] = $value; + $properties['hasWiki'] = $value; - after_releasesUrl: + after_hasWiki: - $value = $payload['ssh_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $properties['sshUrl'] = null; - goto after_sshUrl; + $properties['hasPages'] = null; + goto after_hasPages; } - $properties['sshUrl'] = $value; + $properties['hasPages'] = $value; - after_sshUrl: + after_hasPages: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazersUrl; + $properties['hasDownloads'] = null; + goto after_hasDownloads; } - $properties['stargazersUrl'] = $value; + $properties['hasDownloads'] = $value; - after_stargazersUrl: + after_hasDownloads: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statusesUrl; + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; } - $properties['statusesUrl'] = $value; + $properties['hasDiscussions'] = $value; - after_statusesUrl: + after_hasDiscussions: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribersUrl; + $properties['archived'] = null; + goto after_archived; } - $properties['subscribersUrl'] = $value; + $properties['archived'] = $value; - after_subscribersUrl: + after_archived: - $value = $payload['subscription_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscriptionUrl; + $properties['disabled'] = null; + goto after_disabled; } - $properties['subscriptionUrl'] = $value; + $properties['disabled'] = $value; - after_subscriptionUrl: + after_disabled: - $value = $payload['tags_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tagsUrl; + $properties['visibility'] = null; + goto after_visibility; } - $properties['tagsUrl'] = $value; + $properties['visibility'] = $value; - after_tagsUrl: + after_visibility: - $value = $payload['teams_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teamsUrl; + $properties['pushedAt'] = null; + goto after_pushedAt; } - $properties['teamsUrl'] = $value; + $properties['pushedAt'] = $value; - after_teamsUrl: + after_pushedAt: - $value = $payload['trees_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_treesUrl; + $properties['createdAt'] = null; + goto after_createdAt; } - $properties['treesUrl'] = $value; + $properties['createdAt'] = $value; - after_treesUrl: + after_createdAt: - $value = $payload['clone_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $properties['cloneUrl'] = null; - goto after_cloneUrl; + $properties['updatedAt'] = null; + goto after_updatedAt; } - $properties['cloneUrl'] = $value; + $properties['updatedAt'] = $value; - after_cloneUrl: + after_updatedAt: - $value = $payload['mirror_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $properties['mirrorUrl'] = null; - goto after_mirrorUrl; + $properties['permissions'] = null; + goto after_permissions; } - $properties['mirrorUrl'] = $value; - - after_mirrorUrl: - - $value = $payload['hooks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooksUrl; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['hooksUrl'] = $value; + $properties['permissions'] = $value; - after_hooksUrl: + after_permissions: - $value = $payload['svn_url'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $properties['svnUrl'] = null; - goto after_svnUrl; + $properties['roleName'] = null; + goto after_roleName; } - $properties['svnUrl'] = $value; + $properties['roleName'] = $value; - after_svnUrl: + after_roleName: - $value = $payload['homepage'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $properties['homepage'] = null; - goto after_homepage; + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; } - $properties['homepage'] = $value; + $properties['tempCloneToken'] = $value; - after_homepage: + after_tempCloneToken: - $value = $payload['language'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $properties['language'] = null; - goto after_language; + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; } - $properties['language'] = $value; + $properties['deleteBranchOnMerge'] = $value; - after_language: + after_deleteBranchOnMerge: - $value = $payload['forks_count'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $properties['forksCount'] = null; - goto after_forksCount; + $properties['subscribersCount'] = null; + goto after_subscribersCount; } - $properties['forksCount'] = $value; + $properties['subscribersCount'] = $value; - after_forksCount: + after_subscribersCount: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $properties['stargazersCount'] = null; - goto after_stargazersCount; + $properties['networkCount'] = null; + goto after_networkCount; } - $properties['stargazersCount'] = $value; + $properties['networkCount'] = $value; - after_stargazersCount: + after_networkCount: - $value = $payload['watchers_count'] ?? null; + $value = $payload['code_of_conduct'] ?? null; if ($value === null) { - $properties['watchersCount'] = null; - goto after_watchersCount; + $properties['codeOfConduct'] = null; + goto after_codeOfConduct; } - $properties['watchersCount'] = $value; - - after_watchersCount: - - $value = $payload['size'] ?? null; - - if ($value === null) { - $properties['size'] = null; - goto after_size; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'codeOfConduct'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['size'] = $value; + $properties['codeOfConduct'] = $value; - after_size: + after_codeOfConduct: - $value = $payload['default_branch'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $properties['defaultBranch'] = null; - goto after_defaultBranch; + $properties['license'] = null; + goto after_license; } - $properties['defaultBranch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_defaultBranch: + $properties['license'] = $value; - $value = $payload['open_issues_count'] ?? null; + after_license: + + $value = $payload['forks'] ?? null; if ($value === null) { - $properties['openIssuesCount'] = null; - goto after_openIssuesCount; + $properties['forks'] = null; + goto after_forks; } - $properties['openIssuesCount'] = $value; + $properties['forks'] = $value; - after_openIssuesCount: + after_forks: - $value = $payload['is_template'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $properties['isTemplate'] = null; - goto after_isTemplate; + $properties['openIssues'] = null; + goto after_openIssues; } - $properties['isTemplate'] = $value; + $properties['openIssues'] = $value; - after_isTemplate: + after_openIssues: - $value = $payload['topics'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $properties['topics'] = null; - goto after_topics; + $properties['watchers'] = null; + goto after_watchers; } - $properties['topics'] = $value; + $properties['watchers'] = $value; - after_topics: + after_watchers: - $value = $payload['has_issues'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $properties['hasIssues'] = null; - goto after_hasIssues; + $properties['allowForking'] = null; + goto after_allowForking; } - $properties['hasIssues'] = $value; + $properties['allowForking'] = $value; - after_hasIssues: + after_allowForking: - $value = $payload['has_projects'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $properties['hasProjects'] = null; - goto after_hasProjects; + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; } - $properties['hasProjects'] = $value; + $properties['webCommitSignoffRequired'] = $value; - after_hasProjects: + after_webCommitSignoffRequired: - $value = $payload['has_wiki'] ?? null; + $value = $payload['security_and_analysis'] ?? null; if ($value === null) { - $properties['hasWiki'] = null; - goto after_hasWiki; + $properties['securityAndAnalysis'] = null; + goto after_securityAndAnalysis; } - $properties['hasWiki'] = $value; - - after_hasWiki: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'securityAndAnalysis'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAndAnalysis($value); + } finally { + array_pop($this->hydrationStack); + } + } - $value = $payload['has_pages'] ?? null; + $properties['securityAndAnalysis'] = $value; - if ($value === null) { - $properties['hasPages'] = null; - goto after_hasPages; - } + after_securityAndAnalysis: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } - $properties['hasPages'] = $value; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + } - after_hasPages: + try { + return new MinimalRepository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['has_downloads'] ?? null; + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; if ($value === null) { - $properties['hasDownloads'] = null; - goto after_hasDownloads; + $properties['name'] = null; + goto after_name; } - $properties['hasDownloads'] = $value; + $properties['name'] = $value; - after_hasDownloads: + after_name: - $value = $payload['has_discussions'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $properties['hasDiscussions'] = null; - goto after_hasDiscussions; + $properties['email'] = null; + goto after_email; } - $properties['hasDiscussions'] = $value; + $properties['email'] = $value; - after_hasDiscussions: + after_email: - $value = $payload['archived'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $properties['archived'] = null; - goto after_archived; + $missingFields[] = 'login'; + goto after_login; } - $properties['archived'] = $value; + $properties['login'] = $value; - after_archived: + after_login: - $value = $payload['disabled'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['disabled'] = null; - goto after_disabled; + $missingFields[] = 'id'; + goto after_id; } - $properties['disabled'] = $value; + $properties['id'] = $value; - after_disabled: + after_id: - $value = $payload['visibility'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['visibility'] = null; - goto after_visibility; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['visibility'] = $value; + $properties['nodeId'] = $value; - after_visibility: + after_nodeId: - $value = $payload['pushed_at'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $properties['pushedAt'] = null; - goto after_pushedAt; + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; } - $properties['pushedAt'] = $value; + $properties['avatarUrl'] = $value; - after_pushedAt: + after_avatarUrl: - $value = $payload['created_at'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['createdAt'] = null; - goto after_createdAt; + $properties['gravatarId'] = null; + goto after_gravatarId; } - $properties['createdAt'] = $value; + $properties['gravatarId'] = $value; - after_createdAt: + after_gravatarId: - $value = $payload['updated_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['updatedAt'] = null; - goto after_updatedAt; + $missingFields[] = 'url'; + goto after_url; } - $properties['updatedAt'] = $value; + $properties['url'] = $value; - after_updatedAt: + after_url: - $value = $payload['permissions'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['permissions'] = null; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['permissions'] = $value; + $properties['htmlUrl'] = $value; - after_permissions: + after_htmlUrl: - $value = $payload['role_name'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $properties['roleName'] = null; - goto after_roleName; + $missingFields[] = 'followers_url'; + goto after_followersUrl; } - $properties['roleName'] = $value; + $properties['followersUrl'] = $value; - after_roleName: + after_followersUrl: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $properties['tempCloneToken'] = null; - goto after_tempCloneToken; + $missingFields[] = 'following_url'; + goto after_followingUrl; } - $properties['tempCloneToken'] = $value; + $properties['followingUrl'] = $value; - after_tempCloneToken: + after_followingUrl: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $properties['deleteBranchOnMerge'] = null; - goto after_deleteBranchOnMerge; + $missingFields[] = 'gists_url'; + goto after_gistsUrl; } - $properties['deleteBranchOnMerge'] = $value; + $properties['gistsUrl'] = $value; - after_deleteBranchOnMerge: + after_gistsUrl: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $properties['subscribersCount'] = null; - goto after_subscribersCount; + $missingFields[] = 'starred_url'; + goto after_starredUrl; } - $properties['subscribersCount'] = $value; + $properties['starredUrl'] = $value; - after_subscribersCount: + after_starredUrl: - $value = $payload['network_count'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $properties['networkCount'] = null; - goto after_networkCount; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; } - $properties['networkCount'] = $value; + $properties['subscriptionsUrl'] = $value; - after_networkCount: + after_subscriptionsUrl: - $value = $payload['code_of_conduct'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $properties['codeOfConduct'] = null; - goto after_codeOfConduct; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'codeOfConduct'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; } - $properties['codeOfConduct'] = $value; + $properties['organizationsUrl'] = $value; - after_codeOfConduct: + after_organizationsUrl: - $value = $payload['license'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'repos_url'; + goto after_reposUrl; } - $properties['license'] = $value; + $properties['reposUrl'] = $value; - after_license: + after_reposUrl: - $value = $payload['forks'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $properties['forks'] = null; - goto after_forks; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['forks'] = $value; + $properties['eventsUrl'] = $value; - after_forks: + after_eventsUrl: - $value = $payload['open_issues'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $properties['openIssues'] = null; - goto after_openIssues; + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; } - $properties['openIssues'] = $value; + $properties['receivedEventsUrl'] = $value; - after_openIssues: + after_receivedEventsUrl: - $value = $payload['watchers'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $properties['watchers'] = null; - goto after_watchers; + $missingFields[] = 'type'; + goto after_type; } - $properties['watchers'] = $value; + $properties['type'] = $value; - after_watchers: + after_type: - $value = $payload['allow_forking'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $properties['allowForking'] = null; - goto after_allowForking; + $missingFields[] = 'site_admin'; + goto after_siteAdmin; } - $properties['allowForking'] = $value; + $properties['siteAdmin'] = $value; - after_allowForking: + after_siteAdmin: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $properties['webCommitSignoffRequired'] = null; - goto after_webCommitSignoffRequired; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['webCommitSignoffRequired'] = $value; + $properties['starredAt'] = $value; - after_webCommitSignoffRequired: + after_starredAt: - $value = $payload['security_and_analysis'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $properties['securityAndAnalysis'] = null; - goto after_securityAndAnalysis; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'securityAndAnalysis'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAndAnalysis($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['securityAndAnalysis'] = $value; + $properties['userViewType'] = $value; - after_securityAndAnalysis: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new MinimalRepository(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -2557,9 +2562,9 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterprise\Schema\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository($object), + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($object), @@ -2788,12 +2793,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -2868,105 +2871,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); @@ -3506,6 +3410,105 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments.php index 8a98d652a52..02428bb7b2a 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo; use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Deployment\Payload; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\Deployment; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; @@ -607,17 +608,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1251,12 +1256,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php index 6a94ad37c18..c929fc6f586 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\Deployments; use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Deployment\Payload; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\Deployment; use ApiClients\Client\GitHubEnterprise\Schema\Integration; @@ -607,17 +608,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1284,12 +1289,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses.php index 0dd328e97b9..7a804a5a96c 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\Deployments\DeploymentId; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\DeploymentStatus; use ApiClients\Client\GitHubEnterprise\Schema\Integration; @@ -622,17 +623,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1258,12 +1263,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses/StatusId.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses/StatusId.php index ccec97ab74d..58cc3e92307 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses/StatusId.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses/StatusId.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\Deployments\DeploymentId\Statuses; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\DeploymentStatus; use ApiClients\Client\GitHubEnterprise\Schema\Integration; @@ -557,17 +558,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1163,12 +1168,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php index a05298c4e97..041599abfb0 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; @@ -2502,17 +2503,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -4240,12 +4245,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Comments/CommentId.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Comments/CommentId.php index d63240c2ce4..3d2a199e32e 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Comments/CommentId.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Comments/CommentId.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\Comments; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; @@ -559,17 +560,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1351,12 +1356,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php index 4ac08551909..33a4c52ae50 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\Events; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; @@ -2776,17 +2777,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -5236,12 +5241,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php index f83fec20c07..0b76d46ff8d 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; @@ -2385,17 +2386,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -4083,12 +4088,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php index ea1f50d167e..35a3d1d6ac1 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; use ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest; @@ -2379,17 +2380,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -3907,12 +3912,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Comments.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Comments.php index da7c69f0575..71b0002f7e4 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Comments.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Comments.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\BasicError; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; @@ -622,17 +623,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1391,12 +1396,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CheckRun.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CheckRun.php index 9177c8e6ddd..53c1e99436f 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CheckRun.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CheckRun.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\WebHook; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\CheckRunWithSimpleCheckSuite; use ApiClients\Client\GitHubEnterprise\Schema\CheckRunWithSimpleCheckSuite\Output; use ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct; @@ -17,7 +18,6 @@ use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties; use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository; -use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHubEnterprise\Schema\SecurityAndAnalysis; use ApiClients\Client\GitHubEnterprise\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterprise\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; @@ -73,10 +73,10 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunCompleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunCompleted($payload), 'ApiClients\Client\GitHubEnterprise\Schema\CheckRunWithSimpleCheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRunWithSimpleCheckSuite($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\SimpleCheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleCheckSuite($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($payload), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($payload), @@ -521,17 +521,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -693,749 +697,488 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $properties['name'] = null; - goto after_name; + $properties['issues'] = null; + goto after_issues; } - $properties['name'] = $value; + $properties['issues'] = $value; - after_name: + after_issues: - $value = $payload['email'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['checks'] = null; + goto after_checks; } - $properties['email'] = $value; + $properties['checks'] = $value; - after_email: + after_checks: - $value = $payload['login'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $properties['metadata'] = null; + goto after_metadata; } - $properties['login'] = $value; + $properties['metadata'] = $value; - after_login: + after_metadata: - $value = $payload['id'] ?? null; + $value = $payload['contents'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $properties['contents'] = null; + goto after_contents; } - $properties['id'] = $value; + $properties['contents'] = $value; - after_id: + after_contents: - $value = $payload['node_id'] ?? null; + $value = $payload['deployments'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $properties['deployments'] = null; + goto after_deployments; } - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; + $properties['deployments'] = $value; - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } - $properties['avatarUrl'] = $value; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); + } - after_avatarUrl: + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['gravatar_id'] ?? null; + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleCheckSuite(array $payload): SimpleCheckSuite + { + $properties = []; + $missingFields = []; + try { + $value = $payload['after'] ?? null; if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; + $properties['after'] = null; + goto after_after; } - $properties['gravatarId'] = $value; + $properties['after'] = $value; - after_gravatarId: + after_after: - $value = $payload['url'] ?? null; + $value = $payload['app'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $properties['app'] = null; + goto after_app; } - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'app'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['htmlUrl'] = $value; + $properties['app'] = $value; - after_htmlUrl: + after_app: - $value = $payload['followers_url'] ?? null; + $value = $payload['before'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; + $properties['before'] = null; + goto after_before; } - $properties['followersUrl'] = $value; + $properties['before'] = $value; - after_followersUrl: + after_before: - $value = $payload['following_url'] ?? null; + $value = $payload['conclusion'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; + $properties['conclusion'] = null; + goto after_conclusion; } - $properties['followingUrl'] = $value; + $properties['conclusion'] = $value; - after_followingUrl: + after_conclusion: - $value = $payload['gists_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; + $properties['createdAt'] = null; + goto after_createdAt; } - $properties['gistsUrl'] = $value; + $properties['createdAt'] = $value; - after_gistsUrl: + after_createdAt: - $value = $payload['starred_url'] ?? null; + $value = $payload['head_branch'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; + $properties['headBranch'] = null; + goto after_headBranch; } - $properties['starredUrl'] = $value; + $properties['headBranch'] = $value; - after_starredUrl: + after_headBranch: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['head_sha'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; + $properties['headSha'] = null; + goto after_headSha; } - $properties['subscriptionsUrl'] = $value; + $properties['headSha'] = $value; - after_subscriptionsUrl: + after_headSha: - $value = $payload['organizations_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; + $properties['id'] = null; + goto after_id; } - $properties['organizationsUrl'] = $value; + $properties['id'] = $value; - after_organizationsUrl: + after_id: - $value = $payload['repos_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; + $properties['nodeId'] = null; + goto after_nodeId; } - $properties['reposUrl'] = $value; + $properties['nodeId'] = $value; - after_reposUrl: + after_nodeId: - $value = $payload['events_url'] ?? null; + $value = $payload['pull_requests'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $properties['pullRequests'] = null; + goto after_pullRequests; } - $properties['eventsUrl'] = $value; + $properties['pullRequests'] = $value; - after_eventsUrl: + after_pullRequests: - $value = $payload['received_events_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; + $properties['repository'] = null; + goto after_repository; } - $properties['receivedEventsUrl'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_receivedEventsUrl: + $properties['repository'] = $value; - $value = $payload['type'] ?? null; + after_repository: + + $value = $payload['status'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $properties['status'] = null; + goto after_status; } - $properties['type'] = $value; + $properties['status'] = $value; - after_type: + after_status: - $value = $payload['site_admin'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; + $properties['updatedAt'] = null; + goto after_updatedAt; } - $properties['siteAdmin'] = $value; + $properties['updatedAt'] = $value; - after_siteAdmin: + after_updatedAt: - $value = $payload['starred_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $properties['url'] = null; + goto after_url; } - $properties['starredAt'] = $value; - - after_starredAt: - - $value = $payload['user_view_type'] ?? null; - - if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; - } - - $properties['userViewType'] = $value; + $properties['url'] = $value; - after_userViewType: + after_url: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleCheckSuite', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleCheckSuite::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUser(...$properties); + return new SimpleCheckSuite(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleCheckSuite', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository { $properties = []; $missingFields = []; try { - $value = $payload['issues'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['issues'] = null; - goto after_issues; + $missingFields[] = 'id'; + goto after_id; } - $properties['issues'] = $value; + $properties['id'] = $value; - after_issues: + after_id: - $value = $payload['checks'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['checks'] = null; - goto after_checks; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['checks'] = $value; + $properties['nodeId'] = $value; - after_checks: + after_nodeId: - $value = $payload['metadata'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $properties['metadata'] = null; - goto after_metadata; + $missingFields[] = 'name'; + goto after_name; } - $properties['metadata'] = $value; + $properties['name'] = $value; - after_metadata: + after_name: - $value = $payload['contents'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $properties['contents'] = null; - goto after_contents; + $missingFields[] = 'full_name'; + goto after_fullName; } - $properties['contents'] = $value; + $properties['fullName'] = $value; - after_contents: + after_fullName: - $value = $payload['deployments'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $properties['deployments'] = null; - goto after_deployments; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['deployments'] = $value; - - after_deployments: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); - } + $properties['owner'] = $value; - try { - return new Permissions(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_owner: - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleCheckSuite(array $payload): SimpleCheckSuite - { - $properties = []; - $missingFields = []; - try { - $value = $payload['after'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $properties['after'] = null; - goto after_after; + $missingFields[] = 'private'; + goto after_private; } - $properties['after'] = $value; + $properties['private'] = $value; - after_after: + after_private: - $value = $payload['app'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['app'] = null; - goto after_app; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'app'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['app'] = $value; + $properties['htmlUrl'] = $value; - after_app: + after_htmlUrl: - $value = $payload['before'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $properties['before'] = null; - goto after_before; + $properties['description'] = null; + goto after_description; } - $properties['before'] = $value; + $properties['description'] = $value; - after_before: + after_description: - $value = $payload['conclusion'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $properties['conclusion'] = null; - goto after_conclusion; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['conclusion'] = $value; + $properties['fork'] = $value; - after_conclusion: + after_fork: - $value = $payload['created_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['createdAt'] = null; - goto after_createdAt; + $missingFields[] = 'url'; + goto after_url; } - $properties['createdAt'] = $value; + $properties['url'] = $value; - after_createdAt: + after_url: - $value = $payload['head_branch'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $properties['headBranch'] = null; - goto after_headBranch; + $missingFields[] = 'archive_url'; + goto after_archiveUrl; } - $properties['headBranch'] = $value; + $properties['archiveUrl'] = $value; - after_headBranch: + after_archiveUrl: - $value = $payload['head_sha'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $properties['headSha'] = null; - goto after_headSha; + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; } - $properties['headSha'] = $value; + $properties['assigneesUrl'] = $value; - after_headSha: + after_assigneesUrl: - $value = $payload['id'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $properties['id'] = null; - goto after_id; + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; } - $properties['id'] = $value; + $properties['blobsUrl'] = $value; - after_id: + after_blobsUrl: - $value = $payload['node_id'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $properties['nodeId'] = null; - goto after_nodeId; + $missingFields[] = 'branches_url'; + goto after_branchesUrl; } - $properties['nodeId'] = $value; + $properties['branchesUrl'] = $value; - after_nodeId: + after_branchesUrl: - $value = $payload['pull_requests'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $properties['pullRequests'] = null; - goto after_pullRequests; + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; } - $properties['pullRequests'] = $value; + $properties['collaboratorsUrl'] = $value; - after_pullRequests: + after_collaboratorsUrl: - $value = $payload['repository'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $properties['repository'] = null; - goto after_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'repository'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'comments_url'; + goto after_commentsUrl; } - $properties['repository'] = $value; + $properties['commentsUrl'] = $value; - after_repository: + after_commentsUrl: - $value = $payload['status'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $properties['status'] = null; - goto after_status; + $missingFields[] = 'commits_url'; + goto after_commitsUrl; } - $properties['status'] = $value; + $properties['commitsUrl'] = $value; - after_status: + after_commitsUrl: - $value = $payload['updated_at'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $properties['updatedAt'] = null; - goto after_updatedAt; + $missingFields[] = 'compare_url'; + goto after_compareUrl; } - $properties['updatedAt'] = $value; + $properties['compareUrl'] = $value; - after_updatedAt: + after_compareUrl: - $value = $payload['url'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleCheckSuite', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleCheckSuite::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleCheckSuite(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleCheckSuite', $exception, stack: $this->hydrationStack); - } - } - - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository - { - $properties = []; - $missingFields = []; - try { - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['full_name'] ?? null; - - if ($value === null) { - $missingFields[] = 'full_name'; - goto after_fullName; - } - - $properties['fullName'] = $value; - - after_fullName: - - $value = $payload['owner'] ?? null; - - if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['owner'] = $value; - - after_owner: - - $value = $payload['private'] ?? null; - - if ($value === null) { - $missingFields[] = 'private'; - goto after_private; - } - - $properties['private'] = $value; - - after_private: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $properties['description'] = null; - goto after_description; - } - - $properties['description'] = $value; - - after_description: - - $value = $payload['fork'] ?? null; - - if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; - } - - $properties['fork'] = $value; - - after_fork: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['archive_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archiveUrl; - } - - $properties['archiveUrl'] = $value; - - after_archiveUrl: - - $value = $payload['assignees_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assigneesUrl; - } - - $properties['assigneesUrl'] = $value; - - after_assigneesUrl: - - $value = $payload['blobs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobsUrl; - } - - $properties['blobsUrl'] = $value; - - after_blobsUrl: - - $value = $payload['branches_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branchesUrl; - } - - $properties['branchesUrl'] = $value; - - after_branchesUrl: - - $value = $payload['collaborators_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaboratorsUrl; - } - - $properties['collaboratorsUrl'] = $value; - - after_collaboratorsUrl: - - $value = $payload['comments_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_commentsUrl; - } - - $properties['commentsUrl'] = $value; - - after_commentsUrl: - - $value = $payload['commits_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commitsUrl; - } - - $properties['commitsUrl'] = $value; - - after_commitsUrl: - - $value = $payload['compare_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compareUrl; - } - - $properties['compareUrl'] = $value; - - after_compareUrl: - - $value = $payload['contents_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contentsUrl; + $missingFields[] = 'contents_url'; + goto after_contentsUrl; } $properties['contentsUrl'] = $value; @@ -2182,61 +1925,322 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $properties['watchers'] = $value; - after_watchers: + after_watchers: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $properties['allowForking'] = null; + goto after_allowForking; + } + + $properties['allowForking'] = $value; + + after_allowForking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; + } + + $properties['webCommitSignoffRequired'] = $value; + + after_webCommitSignoffRequired: + + $value = $payload['security_and_analysis'] ?? null; + + if ($value === null) { + $properties['securityAndAnalysis'] = null; + goto after_securityAndAnalysis; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'securityAndAnalysis'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAndAnalysis($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['securityAndAnalysis'] = $value; + + after_securityAndAnalysis: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new MinimalRepository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $properties['email'] = null; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; + } + + $properties['avatarUrl'] = $value; + + after_avatarUrl: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $properties['gravatarId'] = null; + goto after_gravatarId; + } + + $properties['gravatarId'] = $value; + + after_gravatarId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followersUrl; + } + + $properties['followersUrl'] = $value; + + after_followersUrl: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_followingUrl; + } + + $properties['followingUrl'] = $value; + + after_followingUrl: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gistsUrl; + } + + $properties['gistsUrl'] = $value; + + after_gistsUrl: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starredUrl; + } + + $properties['starredUrl'] = $value; + + after_starredUrl: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; + } + + $properties['subscriptionsUrl'] = $value; + + after_subscriptionsUrl: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; + } + + $properties['organizationsUrl'] = $value; + + after_organizationsUrl: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_reposUrl; + } + + $properties['reposUrl'] = $value; + + after_reposUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; + } + + $properties['receivedEventsUrl'] = $value; + + after_receivedEventsUrl: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: - $value = $payload['allow_forking'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $properties['allowForking'] = null; - goto after_allowForking; + $missingFields[] = 'site_admin'; + goto after_siteAdmin; } - $properties['allowForking'] = $value; + $properties['siteAdmin'] = $value; - after_allowForking: + after_siteAdmin: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $properties['webCommitSignoffRequired'] = null; - goto after_webCommitSignoffRequired; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['webCommitSignoffRequired'] = $value; + $properties['starredAt'] = $value; - after_webCommitSignoffRequired: + after_starredAt: - $value = $payload['security_and_analysis'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $properties['securityAndAnalysis'] = null; - goto after_securityAndAnalysis; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'securityAndAnalysis'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAndAnalysis($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['securityAndAnalysis'] = $value; + $properties['userViewType'] = $value; - after_securityAndAnalysis: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new MinimalRepository(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -5455,7 +5459,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): Owner + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner { $properties = []; $missingFields = []; @@ -5662,11 +5666,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new Owner(...$properties); + return new \ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner(...$properties); } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); } @@ -6360,10 +6364,10 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunCompleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunCompleted($object), 'ApiClients\Client\GitHubEnterprise\Schema\CheckRunWithSimpleCheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CheckRunWithSimpleCheckSuite($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\SimpleCheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleCheckSuite($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository($object), + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\CodeOfConduct' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeOfConduct($object), 'ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️License($object), @@ -6608,12 +6612,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -6688,105 +6690,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); @@ -7455,6 +7358,105 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️MinimalRepository⚡️Permissions(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\Permissions); @@ -9154,7 +9156,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(mixed $object): mixed { - assert($object instanceof Owner); + assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner); $result = []; $login = $object->login; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php index 0bae9c747c1..a75945dd05d 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\WebHook; use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Deployment\Payload; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\Deployment; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; @@ -13,7 +14,6 @@ use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties; use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository; -use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHubEnterprise\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterprise\Schema\SimpleUser; use ApiClients\Client\GitHubEnterprise\Schema\WebhookDeploymentProtectionRuleRequested; @@ -795,17 +795,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -3367,7 +3371,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): Owner + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner { $properties = []; $missingFields = []; @@ -3574,11 +3578,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new Owner(...$properties); + return new \ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner(...$properties); } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); } @@ -4293,12 +4297,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -5706,7 +5708,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(mixed $object): mixed { - assert($object instanceof Owner); + assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner); $result = []; $login = $object->login; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/IssueComment.php index 0f41b339f39..291cd575050 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/IssueComment.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\WebHook; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; @@ -23,7 +24,6 @@ use ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\Milestone\Creator; use ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp; -use ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner; use ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PullRequest; use ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary; use ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentDeleted; @@ -69,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️Reactions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️User($payload), @@ -89,6 +88,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), @@ -528,17 +528,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -700,774 +704,513 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $properties['name'] = null; - goto after_name; + $properties['issues'] = null; + goto after_issues; } - $properties['name'] = $value; + $properties['issues'] = $value; - after_name: + after_issues: - $value = $payload['email'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['checks'] = null; + goto after_checks; } - $properties['email'] = $value; + $properties['checks'] = $value; - after_email: + after_checks: - $value = $payload['login'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $properties['metadata'] = null; + goto after_metadata; } - $properties['login'] = $value; + $properties['metadata'] = $value; - after_login: + after_metadata: - $value = $payload['id'] ?? null; + $value = $payload['contents'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $properties['contents'] = null; + goto after_contents; } - $properties['id'] = $value; + $properties['contents'] = $value; - after_id: + after_contents: - $value = $payload['node_id'] ?? null; + $value = $payload['deployments'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $properties['deployments'] = null; + goto after_deployments; } - $properties['nodeId'] = $value; + $properties['deployments'] = $value; - after_nodeId: + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } - $value = $payload['avatar_url'] ?? null; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️Reactions(array $payload): Reactions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['+1'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; + $missingFields[] = '+1'; + goto after_plusOne; } - $properties['avatarUrl'] = $value; + $properties['plusOne'] = $value; - after_avatarUrl: + after_plusOne: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['-1'] ?? null; if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; + $missingFields[] = '-1'; + goto after_minOne; } - $properties['gravatarId'] = $value; + $properties['minOne'] = $value; - after_gravatarId: + after_minOne: - $value = $payload['url'] ?? null; + $value = $payload['confused'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'confused'; + goto after_confused; } - $properties['url'] = $value; + $properties['confused'] = $value; - after_url: + after_confused: - $value = $payload['html_url'] ?? null; + $value = $payload['eyes'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; + $missingFields[] = 'eyes'; + goto after_eyes; } - $properties['htmlUrl'] = $value; + $properties['eyes'] = $value; - after_htmlUrl: + after_eyes: - $value = $payload['followers_url'] ?? null; + $value = $payload['heart'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; + $missingFields[] = 'heart'; + goto after_heart; } - $properties['followersUrl'] = $value; + $properties['heart'] = $value; - after_followersUrl: + after_heart: - $value = $payload['following_url'] ?? null; + $value = $payload['hooray'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; + $missingFields[] = 'hooray'; + goto after_hooray; } - $properties['followingUrl'] = $value; + $properties['hooray'] = $value; - after_followingUrl: + after_hooray: - $value = $payload['gists_url'] ?? null; + $value = $payload['laugh'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; + $missingFields[] = 'laugh'; + goto after_laugh; } - $properties['gistsUrl'] = $value; + $properties['laugh'] = $value; - after_gistsUrl: + after_laugh: - $value = $payload['starred_url'] ?? null; + $value = $payload['rocket'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; + $missingFields[] = 'rocket'; + goto after_rocket; } - $properties['starredUrl'] = $value; + $properties['rocket'] = $value; - after_starredUrl: + after_rocket: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['total_count'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; + $missingFields[] = 'total_count'; + goto after_totalCount; } - $properties['subscriptionsUrl'] = $value; + $properties['totalCount'] = $value; - after_subscriptionsUrl: + after_totalCount: - $value = $payload['organizations_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; + $missingFields[] = 'url'; + goto after_url; } - $properties['organizationsUrl'] = $value; + $properties['url'] = $value; - after_organizationsUrl: + after_url: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\Reactions', $exception, stack: $this->hydrationStack); + } - $value = $payload['repos_url'] ?? null; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Reactions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Reactions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\Reactions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️User(array $payload): User + { + $properties = []; + $missingFields = []; + try { + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; + $properties['avatarUrl'] = null; + goto after_avatarUrl; } - $properties['reposUrl'] = $value; + $properties['avatarUrl'] = $value; - after_reposUrl: + after_avatarUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $properties['deleted'] = null; + goto after_deleted; } - $properties['eventsUrl'] = $value; + $properties['deleted'] = $value; - after_eventsUrl: + after_deleted: - $value = $payload['received_events_url'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; + $properties['email'] = null; + goto after_email; } - $properties['receivedEventsUrl'] = $value; + $properties['email'] = $value; - after_receivedEventsUrl: + after_email: - $value = $payload['type'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $properties['eventsUrl'] = null; + goto after_eventsUrl; } - $properties['type'] = $value; + $properties['eventsUrl'] = $value; - after_type: + after_eventsUrl: - $value = $payload['site_admin'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; + $properties['followersUrl'] = null; + goto after_followersUrl; } - $properties['siteAdmin'] = $value; + $properties['followersUrl'] = $value; - after_siteAdmin: + after_followersUrl: - $value = $payload['starred_at'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $properties['followingUrl'] = null; + goto after_followingUrl; } - $properties['starredAt'] = $value; + $properties['followingUrl'] = $value; - after_starredAt: + after_followingUrl: - $value = $payload['user_view_type'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; + $properties['gistsUrl'] = null; + goto after_gistsUrl; } - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } + $properties['gistsUrl'] = $value; - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_gistsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions - { - $properties = []; - $missingFields = []; - try { - $value = $payload['issues'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['issues'] = null; - goto after_issues; + $properties['gravatarId'] = null; + goto after_gravatarId; } - $properties['issues'] = $value; + $properties['gravatarId'] = $value; - after_issues: + after_gravatarId: - $value = $payload['checks'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['checks'] = null; - goto after_checks; + $properties['htmlUrl'] = null; + goto after_htmlUrl; } - $properties['checks'] = $value; + $properties['htmlUrl'] = $value; - after_checks: + after_htmlUrl: - $value = $payload['metadata'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['metadata'] = null; - goto after_metadata; + $missingFields[] = 'id'; + goto after_id; } - $properties['metadata'] = $value; + $properties['id'] = $value; - after_metadata: + after_id: - $value = $payload['contents'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $properties['contents'] = null; - goto after_contents; + $missingFields[] = 'login'; + goto after_login; } - $properties['contents'] = $value; + $properties['login'] = $value; - after_contents: + after_login: - $value = $payload['deployments'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $properties['deployments'] = null; - goto after_deployments; + $properties['name'] = null; + goto after_name; } - $properties['deployments'] = $value; - - after_deployments: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); - } + $properties['name'] = $value; - try { - return new Permissions(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_name: - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️Reactions(array $payload): Reactions - { - $properties = []; - $missingFields = []; - try { - $value = $payload['+1'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = '+1'; - goto after_plusOne; + $properties['nodeId'] = null; + goto after_nodeId; } - $properties['plusOne'] = $value; + $properties['nodeId'] = $value; - after_plusOne: + after_nodeId: - $value = $payload['-1'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = '-1'; - goto after_minOne; + $properties['organizationsUrl'] = null; + goto after_organizationsUrl; } - $properties['minOne'] = $value; + $properties['organizationsUrl'] = $value; - after_minOne: + after_organizationsUrl: - $value = $payload['confused'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'confused'; - goto after_confused; + $properties['receivedEventsUrl'] = null; + goto after_receivedEventsUrl; } - $properties['confused'] = $value; + $properties['receivedEventsUrl'] = $value; - after_confused: + after_receivedEventsUrl: - $value = $payload['eyes'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'eyes'; - goto after_eyes; + $properties['reposUrl'] = null; + goto after_reposUrl; } - $properties['eyes'] = $value; + $properties['reposUrl'] = $value; - after_eyes: + after_reposUrl: - $value = $payload['heart'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'heart'; - goto after_heart; + $properties['siteAdmin'] = null; + goto after_siteAdmin; } - $properties['heart'] = $value; + $properties['siteAdmin'] = $value; - after_heart: + after_siteAdmin: - $value = $payload['hooray'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooray'; - goto after_hooray; + $properties['starredUrl'] = null; + goto after_starredUrl; } - $properties['hooray'] = $value; + $properties['starredUrl'] = $value; - after_hooray: + after_starredUrl: - $value = $payload['laugh'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'laugh'; - goto after_laugh; + $properties['subscriptionsUrl'] = null; + goto after_subscriptionsUrl; } - $properties['laugh'] = $value; + $properties['subscriptionsUrl'] = $value; - after_laugh: + after_subscriptionsUrl: - $value = $payload['rocket'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'rocket'; - goto after_rocket; + $properties['type'] = null; + goto after_type; } - $properties['rocket'] = $value; + $properties['type'] = $value; - after_rocket: + after_type: - $value = $payload['total_count'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'total_count'; - goto after_totalCount; + $properties['url'] = null; + goto after_url; } - $properties['totalCount'] = $value; + $properties['url'] = $value; - after_totalCount: + after_url: - $value = $payload['url'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['url'] = $value; + $properties['userViewType'] = $value; - after_url: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\Reactions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\User', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Reactions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(User::class, $missingFields, stack: $this->hydrationStack); } try { - return new Reactions(...$properties); + return new User(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\Reactions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\User', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️User(array $payload): User + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️EnterpriseWebhooks(array $payload): EnterpriseWebhooks { $properties = []; $missingFields = []; try { - $value = $payload['avatar_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $properties['avatarUrl'] = null; - goto after_avatarUrl; + $properties['description'] = null; + goto after_description; } - $properties['avatarUrl'] = $value; + $properties['description'] = $value; - after_avatarUrl: + after_description: - $value = $payload['deleted'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['deleted'] = null; - goto after_deleted; + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['deleted'] = $value; + $properties['htmlUrl'] = $value; - after_deleted: + after_htmlUrl: - $value = $payload['email'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['websiteUrl'] = null; + goto after_websiteUrl; } - $properties['email'] = $value; + $properties['websiteUrl'] = $value; - after_email: + after_websiteUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['eventsUrl'] = null; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $properties['followersUrl'] = null; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $properties['followingUrl'] = null; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $properties['gistsUrl'] = null; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $properties['htmlUrl'] = null; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $properties['nodeId'] = null; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $properties['organizationsUrl'] = null; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $properties['receivedEventsUrl'] = null; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $properties['reposUrl'] = null; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $properties['siteAdmin'] = null; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $properties['starredUrl'] = null; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $properties['subscriptionsUrl'] = null; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $properties['type'] = null; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['user_view_type'] ?? null; - - if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; - } - - $properties['userViewType'] = $value; - - after_userViewType: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\User', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(User::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new User(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\User', $exception, stack: $this->hydrationStack); - } - } - - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️EnterpriseWebhooks(array $payload): EnterpriseWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['description'] ?? null; - - if ($value === null) { - $properties['description'] = null; - goto after_description; - } - - $properties['description'] = $value; - - after_description: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $properties['websiteUrl'] = null; - goto after_websiteUrl; - } - - $properties['websiteUrl'] = $value; - - after_websiteUrl: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'id'; + goto after_id; } $properties['id'] = $value; @@ -2913,7 +2656,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Owner(array $payload): Owner + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner { $properties = []; $missingFields = []; @@ -3164,11 +2907,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new Owner(...$properties); + return new \ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner(...$properties); } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner', $exception, stack: $this->hydrationStack); } @@ -4667,839 +4410,1100 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema goto after_issuesUrl; } - $properties['issuesUrl'] = $value; + $properties['issuesUrl'] = $value; + + after_issuesUrl: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keysUrl; + } + + $properties['keysUrl'] = $value; + + after_keysUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languagesUrl; + } + + $properties['languagesUrl'] = $value; + + after_languagesUrl: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_mergesUrl; + } + + $properties['mergesUrl'] = $value; + + after_mergesUrl: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; + } + + $properties['milestonesUrl'] = $value; + + after_milestonesUrl: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; + } + + $properties['notificationsUrl'] = $value; + + after_notificationsUrl: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; + } + + $properties['pullsUrl'] = $value; + + after_pullsUrl: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releasesUrl; + } + + $properties['releasesUrl'] = $value; + + after_releasesUrl: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_sshUrl; + } + + $properties['sshUrl'] = $value; + + after_sshUrl: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; + } + + $properties['stargazersUrl'] = $value; + + after_stargazersUrl: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; + } + + $properties['statusesUrl'] = $value; + + after_statusesUrl: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; + } + + $properties['subscribersUrl'] = $value; + + after_subscribersUrl: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; + } + + $properties['subscriptionUrl'] = $value; + + after_subscriptionUrl: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tagsUrl; + } + + $properties['tagsUrl'] = $value; + + after_tagsUrl: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teamsUrl; + } + + $properties['teamsUrl'] = $value; + + after_teamsUrl: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_treesUrl; + } + + $properties['treesUrl'] = $value; + + after_treesUrl: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_cloneUrl; + } + + $properties['cloneUrl'] = $value; + + after_cloneUrl: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; + } + + $properties['mirrorUrl'] = $value; + + after_mirrorUrl: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; + } + + $properties['hooksUrl'] = $value; + + after_hooksUrl: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svnUrl; + } + + $properties['svnUrl'] = $value; + + after_svnUrl: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $properties['homepage'] = null; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $properties['language'] = null; + goto after_language; + } + + $properties['language'] = $value; - after_issuesUrl: + after_language: - $value = $payload['keys_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keysUrl; + $missingFields[] = 'forks_count'; + goto after_forksCount; } - $properties['keysUrl'] = $value; + $properties['forksCount'] = $value; - after_keysUrl: + after_forksCount: - $value = $payload['labels_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labelsUrl; + $missingFields[] = 'stargazers_count'; + goto after_stargazersCount; } - $properties['labelsUrl'] = $value; + $properties['stargazersCount'] = $value; - after_labelsUrl: + after_stargazersCount: - $value = $payload['languages_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languagesUrl; + $missingFields[] = 'watchers_count'; + goto after_watchersCount; } - $properties['languagesUrl'] = $value; + $properties['watchersCount'] = $value; - after_languagesUrl: + after_watchersCount: - $value = $payload['merges_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_mergesUrl; + $missingFields[] = 'size'; + goto after_size; } - $properties['mergesUrl'] = $value; + $properties['size'] = $value; - after_mergesUrl: + after_size: - $value = $payload['milestones_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestonesUrl; + $missingFields[] = 'default_branch'; + goto after_defaultBranch; } - $properties['milestonesUrl'] = $value; + $properties['defaultBranch'] = $value; - after_milestonesUrl: + after_defaultBranch: - $value = $payload['notifications_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notificationsUrl; + $missingFields[] = 'open_issues_count'; + goto after_openIssuesCount; } - $properties['notificationsUrl'] = $value; + $properties['openIssuesCount'] = $value; - after_notificationsUrl: + after_openIssuesCount: - $value = $payload['pulls_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pullsUrl; + $properties['isTemplate'] = null; + goto after_isTemplate; } - $properties['pullsUrl'] = $value; + $properties['isTemplate'] = $value; - after_pullsUrl: + after_isTemplate: - $value = $payload['releases_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releasesUrl; + $properties['topics'] = null; + goto after_topics; } - $properties['releasesUrl'] = $value; + $properties['topics'] = $value; - after_releasesUrl: + after_topics: - $value = $payload['ssh_url'] ?? null; + $value = $payload['custom_properties'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_sshUrl; + $properties['customProperties'] = null; + goto after_customProperties; } - $properties['sshUrl'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'customProperties'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_sshUrl: + $properties['customProperties'] = $value; - $value = $payload['stargazers_url'] ?? null; + after_customProperties: + + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazersUrl; + $missingFields[] = 'has_issues'; + goto after_hasIssues; } - $properties['stargazersUrl'] = $value; + $properties['hasIssues'] = $value; - after_stargazersUrl: + after_hasIssues: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statusesUrl; + $missingFields[] = 'has_projects'; + goto after_hasProjects; } - $properties['statusesUrl'] = $value; + $properties['hasProjects'] = $value; - after_statusesUrl: + after_hasProjects: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribersUrl; + $missingFields[] = 'has_wiki'; + goto after_hasWiki; } - $properties['subscribersUrl'] = $value; + $properties['hasWiki'] = $value; - after_subscribersUrl: + after_hasWiki: - $value = $payload['subscription_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscriptionUrl; + $missingFields[] = 'has_pages'; + goto after_hasPages; } - $properties['subscriptionUrl'] = $value; + $properties['hasPages'] = $value; - after_subscriptionUrl: + after_hasPages: - $value = $payload['tags_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tagsUrl; + $missingFields[] = 'has_downloads'; + goto after_hasDownloads; } - $properties['tagsUrl'] = $value; + $properties['hasDownloads'] = $value; - after_tagsUrl: + after_hasDownloads: - $value = $payload['teams_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teamsUrl; + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; } - $properties['teamsUrl'] = $value; + $properties['hasDiscussions'] = $value; - after_teamsUrl: + after_hasDiscussions: - $value = $payload['trees_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_treesUrl; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['treesUrl'] = $value; + $properties['archived'] = $value; - after_treesUrl: + after_archived: - $value = $payload['clone_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_cloneUrl; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['cloneUrl'] = $value; + $properties['disabled'] = $value; - after_cloneUrl: + after_disabled: - $value = $payload['mirror_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $properties['mirrorUrl'] = null; - goto after_mirrorUrl; + $properties['visibility'] = null; + goto after_visibility; } - $properties['mirrorUrl'] = $value; + $properties['visibility'] = $value; - after_mirrorUrl: + after_visibility: - $value = $payload['hooks_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooksUrl; + $properties['pushedAt'] = null; + goto after_pushedAt; } - $properties['hooksUrl'] = $value; + $properties['pushedAt'] = $value; - after_hooksUrl: + after_pushedAt: - $value = $payload['svn_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svnUrl; + $properties['createdAt'] = null; + goto after_createdAt; } - $properties['svnUrl'] = $value; + $properties['createdAt'] = $value; - after_svnUrl: + after_createdAt: - $value = $payload['homepage'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $properties['homepage'] = null; - goto after_homepage; + $properties['updatedAt'] = null; + goto after_updatedAt; } - $properties['homepage'] = $value; + $properties['updatedAt'] = $value; - after_homepage: + after_updatedAt: - $value = $payload['language'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $properties['language'] = null; - goto after_language; + $properties['allowRebaseMerge'] = null; + goto after_allowRebaseMerge; } - $properties['language'] = $value; + $properties['allowRebaseMerge'] = $value; - after_language: + after_allowRebaseMerge: - $value = $payload['forks_count'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forksCount; + $properties['templateRepository'] = null; + goto after_templateRepository; } - $properties['forksCount'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'templateRepository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_forksCount: + $properties['templateRepository'] = $value; - $value = $payload['stargazers_count'] ?? null; + after_templateRepository: + + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazersCount; + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; } - $properties['stargazersCount'] = $value; + $properties['tempCloneToken'] = $value; - after_stargazersCount: + after_tempCloneToken: - $value = $payload['watchers_count'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchersCount; + $properties['allowSquashMerge'] = null; + goto after_allowSquashMerge; } - $properties['watchersCount'] = $value; + $properties['allowSquashMerge'] = $value; - after_watchersCount: + after_allowSquashMerge: - $value = $payload['size'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $properties['allowAutoMerge'] = null; + goto after_allowAutoMerge; } - $properties['size'] = $value; + $properties['allowAutoMerge'] = $value; - after_size: + after_allowAutoMerge: - $value = $payload['default_branch'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_defaultBranch; + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; } - $properties['defaultBranch'] = $value; + $properties['deleteBranchOnMerge'] = $value; - after_defaultBranch: + after_deleteBranchOnMerge: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_openIssuesCount; + $properties['allowUpdateBranch'] = null; + goto after_allowUpdateBranch; } - $properties['openIssuesCount'] = $value; + $properties['allowUpdateBranch'] = $value; - after_openIssuesCount: + after_allowUpdateBranch: - $value = $payload['is_template'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $properties['isTemplate'] = null; - goto after_isTemplate; + $properties['useSquashPrTitleAsDefault'] = null; + goto after_useSquashPrTitleAsDefault; } - $properties['isTemplate'] = $value; + $properties['useSquashPrTitleAsDefault'] = $value; - after_isTemplate: + after_useSquashPrTitleAsDefault: - $value = $payload['topics'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $properties['topics'] = null; - goto after_topics; + $properties['squashMergeCommitTitle'] = null; + goto after_squashMergeCommitTitle; } - $properties['topics'] = $value; + $properties['squashMergeCommitTitle'] = $value; - after_topics: + after_squashMergeCommitTitle: - $value = $payload['custom_properties'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $properties['customProperties'] = null; - goto after_customProperties; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'customProperties'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['squashMergeCommitMessage'] = null; + goto after_squashMergeCommitMessage; } - $properties['customProperties'] = $value; + $properties['squashMergeCommitMessage'] = $value; - after_customProperties: + after_squashMergeCommitMessage: - $value = $payload['has_issues'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_hasIssues; + $properties['mergeCommitTitle'] = null; + goto after_mergeCommitTitle; } - $properties['hasIssues'] = $value; + $properties['mergeCommitTitle'] = $value; - after_hasIssues: + after_mergeCommitTitle: - $value = $payload['has_projects'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_hasProjects; + $properties['mergeCommitMessage'] = null; + goto after_mergeCommitMessage; } - $properties['hasProjects'] = $value; + $properties['mergeCommitMessage'] = $value; - after_hasProjects: + after_mergeCommitMessage: - $value = $payload['has_wiki'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_hasWiki; + $properties['allowMergeCommit'] = null; + goto after_allowMergeCommit; } - $properties['hasWiki'] = $value; + $properties['allowMergeCommit'] = $value; - after_hasWiki: + after_allowMergeCommit: - $value = $payload['has_pages'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_hasPages; + $properties['allowForking'] = null; + goto after_allowForking; } - $properties['hasPages'] = $value; + $properties['allowForking'] = $value; - after_hasPages: + after_allowForking: - $value = $payload['has_downloads'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_hasDownloads; + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; } - $properties['hasDownloads'] = $value; + $properties['webCommitSignoffRequired'] = $value; - after_hasDownloads: + after_webCommitSignoffRequired: - $value = $payload['has_discussions'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $properties['hasDiscussions'] = null; - goto after_hasDiscussions; + $properties['subscribersCount'] = null; + goto after_subscribersCount; } - $properties['hasDiscussions'] = $value; + $properties['subscribersCount'] = $value; - after_hasDiscussions: + after_subscribersCount: - $value = $payload['archived'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $properties['networkCount'] = null; + goto after_networkCount; } - $properties['archived'] = $value; + $properties['networkCount'] = $value; - after_archived: + after_networkCount: - $value = $payload['disabled'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'open_issues'; + goto after_openIssues; } - $properties['disabled'] = $value; + $properties['openIssues'] = $value; - after_disabled: + after_openIssues: - $value = $payload['visibility'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $properties['visibility'] = null; - goto after_visibility; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['visibility'] = $value; + $properties['watchers'] = $value; - after_visibility: + after_watchers: - $value = $payload['pushed_at'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $properties['pushedAt'] = null; - goto after_pushedAt; + $properties['masterBranch'] = null; + goto after_masterBranch; } - $properties['pushedAt'] = $value; + $properties['masterBranch'] = $value; - after_pushedAt: + after_masterBranch: - $value = $payload['created_at'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $properties['createdAt'] = null; - goto after_createdAt; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['createdAt'] = $value; + $properties['starredAt'] = $value; - after_createdAt: + after_starredAt: - $value = $payload['updated_at'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $properties['updatedAt'] = null; - goto after_updatedAt; + $properties['anonymousAccessEnabled'] = null; + goto after_anonymousAccessEnabled; } - $properties['updatedAt'] = $value; + $properties['anonymousAccessEnabled'] = $value; - after_updatedAt: + after_anonymousAccessEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks', $exception, stack: $this->hydrationStack); + } - $value = $payload['allow_rebase_merge'] ?? null; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(RepositoryWebhooks::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new RepositoryWebhooks(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple + { + $properties = []; + $missingFields = []; + try { + $value = $payload['key'] ?? null; if ($value === null) { - $properties['allowRebaseMerge'] = null; - goto after_allowRebaseMerge; + $missingFields[] = 'key'; + goto after_key; } - $properties['allowRebaseMerge'] = $value; + $properties['key'] = $value; - after_allowRebaseMerge: + after_key: - $value = $payload['template_repository'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $properties['templateRepository'] = null; - goto after_templateRepository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'templateRepository'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'name'; + goto after_name; } - $properties['templateRepository'] = $value; + $properties['name'] = $value; - after_templateRepository: + after_name: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['tempCloneToken'] = null; - goto after_tempCloneToken; + $properties['url'] = null; + goto after_url; } - $properties['tempCloneToken'] = $value; + $properties['url'] = $value; - after_tempCloneToken: + after_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['spdx_id'] ?? null; if ($value === null) { - $properties['allowSquashMerge'] = null; - goto after_allowSquashMerge; + $properties['spdxId'] = null; + goto after_spdxId; } - $properties['allowSquashMerge'] = $value; + $properties['spdxId'] = $value; - after_allowSquashMerge: + after_spdxId: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['allowAutoMerge'] = null; - goto after_allowAutoMerge; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['allowAutoMerge'] = $value; + $properties['nodeId'] = $value; - after_allowAutoMerge: + after_nodeId: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['deleteBranchOnMerge'] = null; - goto after_deleteBranchOnMerge; + $properties['htmlUrl'] = null; + goto after_htmlUrl; } - $properties['deleteBranchOnMerge'] = $value; + $properties['htmlUrl'] = $value; - after_deleteBranchOnMerge: + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } - $value = $payload['allow_update_branch'] ?? null; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new LicenseSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; if ($value === null) { - $properties['allowUpdateBranch'] = null; - goto after_allowUpdateBranch; + $properties['name'] = null; + goto after_name; } - $properties['allowUpdateBranch'] = $value; + $properties['name'] = $value; - after_allowUpdateBranch: + after_name: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $properties['useSquashPrTitleAsDefault'] = null; - goto after_useSquashPrTitleAsDefault; + $properties['email'] = null; + goto after_email; } - $properties['useSquashPrTitleAsDefault'] = $value; + $properties['email'] = $value; - after_useSquashPrTitleAsDefault: + after_email: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $properties['squashMergeCommitTitle'] = null; - goto after_squashMergeCommitTitle; + $missingFields[] = 'login'; + goto after_login; } - $properties['squashMergeCommitTitle'] = $value; + $properties['login'] = $value; - after_squashMergeCommitTitle: + after_login: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['squashMergeCommitMessage'] = null; - goto after_squashMergeCommitMessage; + $missingFields[] = 'id'; + goto after_id; } - $properties['squashMergeCommitMessage'] = $value; + $properties['id'] = $value; - after_squashMergeCommitMessage: + after_id: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['mergeCommitTitle'] = null; - goto after_mergeCommitTitle; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['mergeCommitTitle'] = $value; + $properties['nodeId'] = $value; - after_mergeCommitTitle: + after_nodeId: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $properties['mergeCommitMessage'] = null; - goto after_mergeCommitMessage; + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; } - $properties['mergeCommitMessage'] = $value; + $properties['avatarUrl'] = $value; - after_mergeCommitMessage: + after_avatarUrl: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['allowMergeCommit'] = null; - goto after_allowMergeCommit; + $properties['gravatarId'] = null; + goto after_gravatarId; } - $properties['allowMergeCommit'] = $value; + $properties['gravatarId'] = $value; - after_allowMergeCommit: + after_gravatarId: - $value = $payload['allow_forking'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['allowForking'] = null; - goto after_allowForking; + $missingFields[] = 'url'; + goto after_url; } - $properties['allowForking'] = $value; + $properties['url'] = $value; - after_allowForking: + after_url: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['webCommitSignoffRequired'] = null; - goto after_webCommitSignoffRequired; + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['webCommitSignoffRequired'] = $value; + $properties['htmlUrl'] = $value; - after_webCommitSignoffRequired: + after_htmlUrl: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $properties['subscribersCount'] = null; - goto after_subscribersCount; + $missingFields[] = 'followers_url'; + goto after_followersUrl; } - $properties['subscribersCount'] = $value; + $properties['followersUrl'] = $value; - after_subscribersCount: + after_followersUrl: - $value = $payload['network_count'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $properties['networkCount'] = null; - goto after_networkCount; + $missingFields[] = 'following_url'; + goto after_followingUrl; } - $properties['networkCount'] = $value; + $properties['followingUrl'] = $value; - after_networkCount: + after_followingUrl: - $value = $payload['open_issues'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_openIssues; + $missingFields[] = 'gists_url'; + goto after_gistsUrl; } - $properties['openIssues'] = $value; + $properties['gistsUrl'] = $value; - after_openIssues: + after_gistsUrl: - $value = $payload['watchers'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'starred_url'; + goto after_starredUrl; } - $properties['watchers'] = $value; + $properties['starredUrl'] = $value; - after_watchers: + after_starredUrl: - $value = $payload['master_branch'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $properties['masterBranch'] = null; - goto after_masterBranch; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; } - $properties['masterBranch'] = $value; + $properties['subscriptionsUrl'] = $value; - after_masterBranch: + after_subscriptionsUrl: - $value = $payload['starred_at'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; } - $properties['starredAt'] = $value; + $properties['organizationsUrl'] = $value; - after_starredAt: + after_organizationsUrl: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $properties['anonymousAccessEnabled'] = null; - goto after_anonymousAccessEnabled; + $missingFields[] = 'repos_url'; + goto after_reposUrl; } - $properties['anonymousAccessEnabled'] = $value; - - after_anonymousAccessEnabled: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(RepositoryWebhooks::class, $missingFields, stack: $this->hydrationStack); - } + $properties['reposUrl'] = $value; - try { - return new RepositoryWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks', $exception, stack: $this->hydrationStack); - } - } + after_reposUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple - { - $properties = []; - $missingFields = []; - try { - $value = $payload['key'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'key'; - goto after_key; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['key'] = $value; + $properties['eventsUrl'] = $value; - after_key: + after_eventsUrl: - $value = $payload['name'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; } - $properties['name'] = $value; + $properties['receivedEventsUrl'] = $value; - after_name: + after_receivedEventsUrl: - $value = $payload['url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $properties['url'] = null; - goto after_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['url'] = $value; + $properties['type'] = $value; - after_url: + after_type: - $value = $payload['spdx_id'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $properties['spdxId'] = null; - goto after_spdxId; + $missingFields[] = 'site_admin'; + goto after_siteAdmin; } - $properties['spdxId'] = $value; + $properties['siteAdmin'] = $value; - after_spdxId: + after_siteAdmin: - $value = $payload['node_id'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['nodeId'] = $value; + $properties['starredAt'] = $value; - after_nodeId: + after_starredAt: - $value = $payload['html_url'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $properties['htmlUrl'] = null; - goto after_htmlUrl; + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['htmlUrl'] = $value; + $properties['userViewType'] = $value; - after_htmlUrl: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new LicenseSimple(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -15652,7 +15656,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️Reactions($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Comment\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️User($object), @@ -15672,6 +15675,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️Permissions($object), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), @@ -15898,12 +15902,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -15978,105 +15980,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed - { - assert($object instanceof SimpleUser); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - $userViewType = $object->userViewType; - - if ($userViewType === null) { - goto after_userViewType; - } - - after_userViewType: $result['user_view_type'] = $userViewType; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); @@ -17131,7 +17034,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Owner(mixed $object): mixed { - assert($object instanceof Owner); + assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner); $result = []; $avatarUrl = $object->avatarUrl; @@ -18454,6 +18357,105 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️Permissions(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\Permissions); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/WorkflowJob.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/WorkflowJob.php index 71132455063..34aaaf6e976 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/WorkflowJob.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/WorkflowJob.php @@ -4013,17 +4013,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = null; + $missingFields[] = 'owner'; goto after_owner; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new \ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -7730,12 +7734,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_nodeId: $result['node_id'] = $nodeId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterprise\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php index 227fc3182be..d9101ec8994 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $enterprise, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $first = 30, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForOrg.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForOrg.php index a438ef1b926..d817e6253a6 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForOrg.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForOrg.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $org, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $first = 30, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepo.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepo.php index 725c65c665a..aaa11a3a2ea 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepo.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, int $first = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php index 5eb311a1cca..ce89b2216d4 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, int $first = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Dependabot.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Dependabot.php index cfaf9ea5af0..dafe5af3b28 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Dependabot.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Dependabot.php @@ -62,7 +62,7 @@ public function getOrgSecret(array $params): OrganizationDependabotSecret return $operator->call($arguments['org'], $arguments['secret_name']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; @@ -200,7 +200,7 @@ public function listRepoSecrets(array $params): Ok return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForEnterprise(array $params): iterable|WithoutBody { $arguments = []; @@ -287,7 +287,7 @@ public function listAlertsForEnterprise(array $params): iterable|WithoutBody return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['severity'], $arguments['ecosystem'], $arguments['package'], $arguments['scope'], $arguments['before'], $arguments['after'], $arguments['last'], $arguments['sort'], $arguments['direction'], $arguments['first'], $arguments['per_page']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForOrg(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php index 92e01c60555..71ce8678ba0 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php @@ -50,7 +50,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|WithoutBody|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|GhesChecksSystemRequirements|GhesClusterStatus|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyStatus\Response\ApplicationJson\Ok|GhesLicenseInfo|GhesConfigNodes|GhesGetSettings|GhesReplicationStatus|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrgPreReceiveHook|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Installation|Language|LicenseContent|Page|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php index ca623c7b09a..eb0bdb15668 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php @@ -69,7 +69,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): PreReceiveEnvironmentDownloadStatus|ActionsCacheUsageOrgEnterprise|ActionsCacheUsagePolicyEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyEvents\Response\ApplicationJson\Ok|WithoutBody|GhesLicenseCheck|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|CommitComment|Commit|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|RepositoryRuleset|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|ScimEnterpriseGroupList|ScimEnterpriseUserList|TeamRepository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Dependabot.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Dependabot.php index dfd7cd9c4ae..4d9743cfcb2 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Dependabot.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Dependabot.php @@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Six.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Six.php index 35c92517d08..90261ba2b17 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Six.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|iterable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.13/src/Operation/Dependabot.php b/clients/GitHubEnterprise-3.13/src/Operation/Dependabot.php index 59d0efd4244..aa25b692cb1 100644 --- a/clients/GitHubEnterprise-3.13/src/Operation/Dependabot.php +++ b/clients/GitHubEnterprise-3.13/src/Operation/Dependabot.php @@ -21,13 +21,13 @@ public function __construct(private Internal\Operators $operators) { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForEnterprise(string $enterprise, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $first, int $perPage): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForEnterprise()->call($enterprise, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForOrg(string $org, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $first, int $perPage): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForOrg()->call($org, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); @@ -87,13 +87,13 @@ public function removeSelectedRepoFromOrgSecret(string $org, string $secretName, return $this->operators->dependabot👷RemoveSelectedRepoFromOrgSecret()->call($org, $secretName, $repositoryId); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $page, int $perPage, int $first): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForRepo()->call($owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $page, int $perPage, int $first): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForRepoListing()->call($owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php index 194f90502a3..484f55c39bc 100644 --- a/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php @@ -604,7 +604,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /enterprises/{enterprise}/secret-scanning/alerts') { @@ -1200,7 +1200,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /orgs/{org}/dependabot/secrets') { @@ -2676,11 +2676,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}') { diff --git a/clients/GitHubEnterprise-3.13/src/Schema/AddedToProjectIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/AddedToProjectIssueEvent.php index d5e77ac9b67..9a895b893a3 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/AddedToProjectIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/AddedToProjectIssueEvent.php @@ -265,10 +265,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -436,6 +433,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -628,30 +715,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet7C8C7BA3/Tiet97BCC415/TietEB32BDB4/TietC6E8FCD7.php b/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietD29A14FC/Tiet805269F1/TietA52E66B2/Tiet7F583E73.php similarity index 86% rename from clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet7C8C7BA3/Tiet97BCC415/TietEB32BDB4/TietC6E8FCD7.php rename to clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietD29A14FC/Tiet805269F1/TietA52E66B2/Tiet7F583E73.php index 8bb50416bde..9e2a5160fad 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet7C8C7BA3/Tiet97BCC415/TietEB32BDB4/TietC6E8FCD7.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietD29A14FC/Tiet805269F1/TietA52E66B2/Tiet7F583E73.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet7C8C7BA3\Tiet97BCC415\TietEB32BDB4; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\TietD29A14FC\Tiet805269F1\TietA52E66B2; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class TietC6E8FCD7 +abstract readonly class Tiet7F583E73 { public const SCHEMA_JSON = '{ "required": [ @@ -254,10 +254,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -425,6 +422,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -796,10 +883,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -967,6 +1051,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1127,30 +1301,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1239,30 +1390,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1314,30 +1442,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1426,30 +1531,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/AssignedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/AssignedIssueEvent.php index 5f9c0c091df..19d3e56eded 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/AssignedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/AssignedIssueEvent.php @@ -262,10 +262,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -433,6 +430,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -927,30 +1014,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/BranchProtection.php b/clients/GitHubEnterprise-3.13/src/Schema/BranchProtection.php index 715000b51bd..c1c4c265db3 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/BranchProtection.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/BranchProtection.php @@ -540,10 +540,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -711,6 +708,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1282,10 +1369,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1453,6 +1537,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2189,30 +2363,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2239,30 +2390,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2420,30 +2548,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2470,30 +2575,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/BranchWithProtection.php b/clients/GitHubEnterprise-3.13/src/Schema/BranchWithProtection.php index e27faf5b599..34ce2f11cb8 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/BranchWithProtection.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/BranchWithProtection.php @@ -1284,10 +1284,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1455,6 +1452,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2026,10 +2113,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2197,6 +2281,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3038,30 +3212,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -3088,30 +3239,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -3269,30 +3397,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -3319,30 +3424,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/CheckRun.php b/clients/GitHubEnterprise-3.13/src/Schema/CheckRun.php index 6bc1156cdec..d782360f628 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/CheckRun.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/CheckRun.php @@ -243,10 +243,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -414,6 +411,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -785,10 +872,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -956,6 +1040,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1110,30 +1284,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1222,30 +1373,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/CheckRunWithSimpleCheckSuite.php b/clients/GitHubEnterprise-3.13/src/Schema/CheckRunWithSimpleCheckSuite.php index 53934ad7c14..7fa2d7c75ed 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/CheckRunWithSimpleCheckSuite.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/CheckRunWithSimpleCheckSuite.php @@ -77,10 +77,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -248,6 +245,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -420,10 +507,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -591,6 +675,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1892,10 +2066,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2063,6 +2234,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2401,30 +2662,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2453,30 +2691,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2724,30 +2939,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/CheckSuite.php b/clients/GitHubEnterprise-3.13/src/Schema/CheckSuite.php index f2eb38ebbf2..11c540462b2 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/CheckSuite.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/CheckSuite.php @@ -275,10 +275,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -446,6 +443,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1520,30 +1607,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ConvertedNoteToIssueIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/ConvertedNoteToIssueIssueEvent.php index ee51de91172..04849c7049e 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ConvertedNoteToIssueIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ConvertedNoteToIssueIssueEvent.php @@ -260,10 +260,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -431,6 +428,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -621,30 +708,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/DemilestonedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/DemilestonedIssueEvent.php index 3a8943263aa..03ad94265f9 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/DemilestonedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/DemilestonedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -608,30 +695,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Deployment.php b/clients/GitHubEnterprise-3.13/src/Schema/Deployment.php index ae4817737d7..60e60652fb5 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Deployment.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Deployment.php @@ -367,10 +367,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -538,6 +535,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -707,30 +794,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/DeploymentSimple.php b/clients/GitHubEnterprise-3.13/src/Schema/DeploymentSimple.php index f7a49a6b9fd..87b7bede6f6 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/DeploymentSimple.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/DeploymentSimple.php @@ -162,10 +162,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -333,6 +330,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -475,30 +562,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/DeploymentStatus.php b/clients/GitHubEnterprise-3.13/src/Schema/DeploymentStatus.php index 13a37b82699..6eb982325de 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/DeploymentStatus.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/DeploymentStatus.php @@ -355,10 +355,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -526,6 +523,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -692,30 +779,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Event.php b/clients/GitHubEnterprise-3.13/src/Schema/Event.php index 358d4ff7287..cceb55964bd 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Event.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Event.php @@ -2377,10 +2377,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2548,6 +2545,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3065,10 +3152,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -3236,6 +3320,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3768,30 +3942,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -3873,30 +4024,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Event/Payload.php b/clients/GitHubEnterprise-3.13/src/Schema/Event/Payload.php index 0a8e4f3ba9f..941479f09fb 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Event/Payload.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Event/Payload.php @@ -2260,10 +2260,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2431,6 +2428,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2948,10 +3035,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -3119,6 +3203,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3614,30 +3788,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -3719,30 +3870,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Integration.php b/clients/GitHubEnterprise-3.13/src/Schema/Integration.php index cbaeebd65cd..5c9e1028597 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Integration.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Integration.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterprise\Schema; +use ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterprise\Schema; use EventSauce\ObjectHydrator\MapFrom; @@ -50,10 +51,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -221,6 +219,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -344,30 +432,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -400,7 +465,8 @@ * installationsCount: The number of installations associated with the GitHub app */ public function __construct(public int $id, public string|null $slug, #[MapFrom('node_id')] - public string $nodeId, public Schema\SimpleUser|null $owner, public string $name, public string|null $description, #[MapFrom('external_url')] + public string $nodeId, #[Owner] + public Schema\SimpleUser|Schema\Enterprise $owner, public string $name, public string|null $description, #[MapFrom('external_url')] public string $externalUrl, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('created_at')] public string $createdAt, #[MapFrom('updated_at')] diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Issue.php b/clients/GitHubEnterprise-3.13/src/Schema/Issue.php index 6b35876b8be..248fcf0880f 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Issue.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Issue.php @@ -2255,10 +2255,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2426,6 +2423,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2926,30 +3013,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/IssueComment.php b/clients/GitHubEnterprise-3.13/src/Schema/IssueComment.php index 5e950f30748..5150d52c04a 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/IssueComment.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/IssueComment.php @@ -317,10 +317,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -488,6 +485,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -701,30 +788,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/IssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/IssueEvent.php index a9a69dbace3..729d08a2bcf 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/IssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/IssueEvent.php @@ -2500,10 +2500,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2671,6 +2668,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3978,10 +4065,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -4149,6 +4233,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4594,30 +4768,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4822,30 +4973,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/IssueEventForIssue.php b/clients/GitHubEnterprise-3.13/src/Schema/IssueEventForIssue.php index e257bfa2b11..eac470879d1 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/IssueEventForIssue.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/IssueEventForIssue.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -831,10 +918,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1002,6 +1086,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1392,10 +1566,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1563,6 +1734,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2277,10 +2538,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2448,64 +2706,154 @@ } }, "description": "A GitHub user." - } - ] - }, - "name": { - "type": "string", - "description": "The name of the GitHub app", - "examples": [ - "Probot Owners" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "The description of the app." - ] - }, - "external_url": { - "type": "string", - "format": "uri", - "examples": [ - "https:\\/\\/example.com" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https:\\/\\/github.com\\/apps\\/super-ci" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-08T16:18:44-04:00" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-08T16:18:44-04:00" - ] - }, - "permissions": { - "type": "object", - "properties": { - "issues": { - "type": "string" - }, - "checks": { - "type": "string" }, - "metadata": { - "type": "string" + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." + } + ] + }, + "name": { + "type": "string", + "description": "The name of the GitHub app", + "examples": [ + "Probot Owners" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "The description of the app." + ] + }, + "external_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/example.com" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/apps\\/super-ci" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2017-07-08T16:18:44-04:00" + ] + }, + "updated_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2017-07-08T16:18:44-04:00" + ] + }, + "permissions": { + "type": "object", + "properties": { + "issues": { + "type": "string" + }, + "checks": { + "type": "string" + }, + "metadata": { + "type": "string" }, "contents": { "type": "string" @@ -3163,10 +3511,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -3334,6 +3679,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3724,10 +4159,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -3895,6 +4327,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4285,10 +4807,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -4456,13 +4975,103 @@ } }, "description": "A GitHub user." - } - ] - }, - "name": { - "type": "string", - "description": "The name of the GitHub app", - "examples": [ + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." + } + ] + }, + "name": { + "type": "string", + "description": "The name of the GitHub app", + "examples": [ "Probot Owners" ] }, @@ -4850,10 +5459,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -5021,6 +5627,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -5946,10 +6642,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -6117,6 +6810,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -7042,10 +7825,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -7213,64 +7993,154 @@ } }, "description": "A GitHub user." - } - ] - }, - "name": { - "type": "string", - "description": "The name of the GitHub app", - "examples": [ - "Probot Owners" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "The description of the app." - ] - }, - "external_url": { - "type": "string", - "format": "uri", - "examples": [ - "https:\\/\\/example.com" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https:\\/\\/github.com\\/apps\\/super-ci" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-08T16:18:44-04:00" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-08T16:18:44-04:00" - ] - }, - "permissions": { - "type": "object", - "properties": { - "issues": { - "type": "string" - }, - "checks": { - "type": "string" }, - "metadata": { - "type": "string" + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." + } + ] + }, + "name": { + "type": "string", + "description": "The name of the GitHub app", + "examples": [ + "Probot Owners" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "The description of the app." + ] + }, + "external_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/example.com" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/apps\\/super-ci" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2017-07-08T16:18:44-04:00" + ] + }, + "updated_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2017-07-08T16:18:44-04:00" + ] + }, + "permissions": { + "type": "object", + "properties": { + "issues": { + "type": "string" + }, + "checks": { + "type": "string" + }, + "metadata": { + "type": "string" }, "contents": { "type": "string" @@ -7617,10 +8487,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -7788,6 +8655,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -8175,10 +9132,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -8346,6 +9300,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -8756,10 +9800,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -8927,6 +9968,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -9337,10 +10468,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -9508,6 +10636,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -9913,10 +11131,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -10084,6 +11299,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, diff --git a/clients/GitHubEnterprise-3.13/src/Schema/IssueSearchResultItem.php b/clients/GitHubEnterprise-3.13/src/Schema/IssueSearchResultItem.php index 1f45133ed78..efa67c436e4 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/IssueSearchResultItem.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/IssueSearchResultItem.php @@ -2114,10 +2114,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2285,6 +2282,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2792,30 +2879,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/LabeledIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/LabeledIssueEvent.php index fe65556fbaf..7f25ee0b816 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/LabeledIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/LabeledIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -612,30 +699,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/LockedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/LockedIssueEvent.php index e965f9e4a32..671fce77356 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/LockedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/LockedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -606,30 +693,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/MilestonedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/MilestonedIssueEvent.php index 9e0bf7e67e4..888d7c1a7dc 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/MilestonedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/MilestonedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -608,30 +695,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/MovedColumnInProjectIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/MovedColumnInProjectIssueEvent.php index b8718d2d241..244604b05d0 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/MovedColumnInProjectIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/MovedColumnInProjectIssueEvent.php @@ -265,10 +265,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -436,6 +433,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -628,30 +715,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Apps/CreateFromManifest/Response/ApplicationJson/Created.php b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Apps/CreateFromManifest/Response/ApplicationJson/Created.php index 0d7198f722f..dfb436b1ad5 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Apps/CreateFromManifest/Response/ApplicationJson/Created.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Apps/CreateFromManifest/Response/ApplicationJson/Created.php @@ -49,10 +49,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -220,6 +217,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForRef/Response/ApplicationJson/Ok.php b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForRef/Response/ApplicationJson/Ok.php index 0894e2c676c..19d1c646c99 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForRef/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForRef/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterprise\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet7C8C7BA3\Tiet97BCC415\TietEB32BDB4\TietC6E8FCD7 +final readonly class Ok extends Schema\AliasAbstract\TietD29A14FC\Tiet805269F1\TietA52E66B2\Tiet7F583E73 { } diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForRef/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForRef/Response/ApplicationJson/Ok/Application/Json.php index 2a9a38d4031..43c2a4f1a18 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForRef/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForRef/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterprise\Schema; -final readonly class Json extends Schema\AliasAbstract\Tiet7C8C7BA3\Tiet97BCC415\TietEB32BDB4\TietC6E8FCD7 +final readonly class Json extends Schema\AliasAbstract\TietD29A14FC\Tiet805269F1\TietA52E66B2\Tiet7F583E73 { } diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForSuite/Response/ApplicationJson/Ok.php b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForSuite/Response/ApplicationJson/Ok.php index 53642147b38..823c68fca3e 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForSuite/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListForSuite/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterprise\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet7C8C7BA3\Tiet97BCC415\TietEB32BDB4\TietC6E8FCD7 +final readonly class Ok extends Schema\AliasAbstract\TietD29A14FC\Tiet805269F1\TietA52E66B2\Tiet7F583E73 { } diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListSuitesForRef/Response/ApplicationJson/Ok.php b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListSuitesForRef/Response/ApplicationJson/Ok.php index d7fb51b72ad..f88e432e120 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListSuitesForRef/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Checks/ListSuitesForRef/Response/ApplicationJson/Ok.php @@ -286,10 +286,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -457,6 +454,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1537,30 +1624,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1765,30 +1829,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Search/IssuesAndPullRequests/Response/ApplicationJson/Ok.php b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Search/IssuesAndPullRequests/Response/ApplicationJson/Ok.php index 508cf2e136e..d1cdf251b16 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Operations/Search/IssuesAndPullRequests/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/Operations/Search/IssuesAndPullRequests/Response/ApplicationJson/Ok.php @@ -2129,10 +2129,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2300,6 +2297,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2814,30 +2901,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -3207,30 +3271,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch.php b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch.php index ff2442bebc0..f5702507037 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch.php @@ -560,10 +560,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -731,6 +728,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1285,10 +1372,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1456,6 +1540,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2186,30 +2360,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2236,30 +2387,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2414,30 +2542,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2464,30 +2569,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews.php b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews.php index c08392ba2d5..ffe38155f44 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews.php @@ -482,10 +482,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -653,6 +650,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1207,10 +1294,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1378,6 +1462,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1641,30 +1815,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1691,30 +1842,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1869,30 +1997,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1919,30 +2024,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews/BypassPullRequestAllowances.php b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews/BypassPullRequestAllowances.php index a1ad9f18e32..0b146565a66 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews/BypassPullRequestAllowances.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews/BypassPullRequestAllowances.php @@ -440,10 +440,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -611,6 +608,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -863,30 +950,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -913,30 +977,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews/DismissalRestrictions.php b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews/DismissalRestrictions.php index e6fb8aee5c2..3229d90274b 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews/DismissalRestrictions.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranch/RequiredPullRequestReviews/DismissalRestrictions.php @@ -457,10 +457,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -628,6 +625,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -883,30 +970,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -933,30 +997,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview.php b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview.php index 52cb38f4b66..5ced77ece48 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview.php @@ -456,10 +456,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -627,6 +624,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1198,10 +1285,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1369,6 +1453,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1656,30 +1830,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1706,30 +1857,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1887,30 +2015,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -1937,30 +2042,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview/BypassPullRequestAllowances.php b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview/BypassPullRequestAllowances.php index e8dddf96704..6d51eb2128c 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview/BypassPullRequestAllowances.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview/BypassPullRequestAllowances.php @@ -438,10 +438,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -609,6 +606,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -863,30 +950,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -913,30 +977,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview/DismissalRestrictions.php b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview/DismissalRestrictions.php index 2cdcee068d3..bd2e0c5444c 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview/DismissalRestrictions.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ProtectedBranchPullRequestReview/DismissalRestrictions.php @@ -440,10 +440,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -611,6 +608,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -882,30 +969,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -932,30 +996,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/RemovedFromProjectIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/RemovedFromProjectIssueEvent.php index 96563b8d1ea..a70f9703156 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/RemovedFromProjectIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/RemovedFromProjectIssueEvent.php @@ -265,10 +265,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -436,6 +433,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -628,30 +715,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/RenamedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/RenamedIssueEvent.php index 0a23a4a5cb8..3e93fe1f1b4 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/RenamedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/RenamedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -612,30 +699,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ReviewDismissedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/ReviewDismissedIssueEvent.php index a96b3e99bfc..56918856b8e 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ReviewDismissedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ReviewDismissedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -622,30 +709,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ReviewRequestRemovedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/ReviewRequestRemovedIssueEvent.php index 4575c5f7c65..2143661e5f5 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ReviewRequestRemovedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ReviewRequestRemovedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1143,30 +1230,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ReviewRequestedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/ReviewRequestedIssueEvent.php index 199bde136b4..68d2c4729a5 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ReviewRequestedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ReviewRequestedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1143,30 +1230,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/ShortBranch.php b/clients/GitHubEnterprise-3.13/src/Schema/ShortBranch.php index 705e211bcc5..c18e8679714 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/ShortBranch.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/ShortBranch.php @@ -571,10 +571,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -742,6 +739,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1313,10 +1400,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1484,6 +1568,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2234,30 +2408,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2284,30 +2435,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2465,30 +2593,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -2515,30 +2620,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/SimpleCheckSuite.php b/clients/GitHubEnterprise-3.13/src/Schema/SimpleCheckSuite.php index 86dcdd2941d..2d404973d53 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/SimpleCheckSuite.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/SimpleCheckSuite.php @@ -62,10 +62,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -233,6 +230,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1356,30 +1443,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/StateChangeIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/StateChangeIssueEvent.php index 281b1ad523f..70b92582f22 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/StateChangeIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/StateChangeIssueEvent.php @@ -265,10 +265,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -436,6 +433,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -602,30 +689,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/TimelineAssignedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/TimelineAssignedIssueEvent.php index 7e2e12b995e..703aace21c5 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/TimelineAssignedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/TimelineAssignedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -765,30 +852,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/TimelineCommentEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/TimelineCommentEvent.php index 694dc47d237..7fda7f763b9 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/TimelineCommentEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/TimelineCommentEvent.php @@ -482,10 +482,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -653,6 +650,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -891,30 +978,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/TimelineCrossReferencedEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/TimelineCrossReferencedEvent.php index 7c8978f5d3f..9c3b48e36ff 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/TimelineCrossReferencedEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/TimelineCrossReferencedEvent.php @@ -2450,10 +2450,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2621,6 +2618,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3156,30 +3243,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/TimelineCrossReferencedEvent/Source.php b/clients/GitHubEnterprise-3.13/src/Schema/TimelineCrossReferencedEvent/Source.php index 1c0c29b601c..4775b465f93 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/TimelineCrossReferencedEvent/Source.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/TimelineCrossReferencedEvent/Source.php @@ -2260,10 +2260,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2431,6 +2428,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -2935,30 +3022,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/TimelineIssueEvents.php b/clients/GitHubEnterprise-3.13/src/Schema/TimelineIssueEvents.php index 187d048aed5..1469d81c9c8 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/TimelineIssueEvents.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/TimelineIssueEvents.php @@ -267,10 +267,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -438,6 +435,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -832,10 +919,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1003,6 +1087,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1397,10 +1571,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -1568,6 +1739,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1958,10 +2219,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2129,30 +2387,120 @@ } }, "description": "A GitHub user." - } - ] - }, - "name": { - "type": "string", - "description": "The name of the GitHub app", - "examples": [ - "Probot Owners" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "The description of the app." - ] - }, - "external_url": { - "type": "string", - "format": "uri", - "examples": [ - "https:\\/\\/example.com" + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." + } + ] + }, + "name": { + "type": "string", + "description": "The name of the GitHub app", + "examples": [ + "Probot Owners" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "The description of the app." + ] + }, + "external_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/example.com" ] }, "html_url": { @@ -2519,10 +2867,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2690,6 +3035,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3084,10 +3519,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -3255,6 +3687,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4180,10 +4702,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -4351,10 +4870,100 @@ } }, "description": "A GitHub user." - } - ] - }, - "name": { + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." + } + ] + }, + "name": { "type": "string", "description": "The name of the GitHub app", "examples": [ @@ -5276,10 +5885,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -5447,6 +6053,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -5851,10 +6547,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -6022,6 +6715,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -6409,10 +7192,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -6580,6 +7360,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -6990,10 +7860,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -7161,6 +8028,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -7571,10 +8528,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -7712,36 +8666,126 @@ "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" ] }, - "received_events_url": { + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { "type": "string", - "format": "uri", + "description": "The name of the enterprise.", "examples": [ - "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + "Octo Business" ] }, - "type": { + "slug": { "type": "string", + "description": "The slug url identifier for the enterprise.", "examples": [ - "User" + "octo-business" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", "examples": [ - "\\"2020-07-09T00:17:55Z\\"" + "2019-01-26T19:01:12Z" ] }, - "user_view_type": { - "type": "string", + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", "examples": [ - "public" + "2019-01-26T19:14:43Z" ] + }, + "avatar_url": { + "type": "string", + "format": "uri" } }, - "description": "A GitHub user." + "description": "An enterprise on GitHub." } ] }, @@ -8147,10 +9191,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -8318,6 +9359,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -8943,10 +10074,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -9114,6 +10242,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -11726,10 +12944,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -11864,39 +13079,129 @@ "events_url": { "type": "string", "examples": [ - "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" ] }, - "received_events_url": { + "name": { "type": "string", - "format": "uri", + "description": "The name of the enterprise.", "examples": [ - "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + "Octo Business" ] }, - "type": { + "slug": { "type": "string", + "description": "The slug url identifier for the enterprise.", "examples": [ - "User" + "octo-business" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", "examples": [ - "\\"2020-07-09T00:17:55Z\\"" + "2019-01-26T19:01:12Z" ] }, - "user_view_type": { - "type": "string", + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", "examples": [ - "public" + "2019-01-26T19:14:43Z" ] + }, + "avatar_url": { + "type": "string", + "format": "uri" } }, - "description": "A GitHub user." + "description": "An enterprise on GitHub." } ] }, @@ -13713,10 +15018,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -13884,6 +15186,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -14431,10 +15823,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -14602,6 +15991,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -15148,10 +16627,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -15319,6 +16795,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, diff --git a/clients/GitHubEnterprise-3.13/src/Schema/TimelineUnassignedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/TimelineUnassignedIssueEvent.php index b2378d1fec5..b43c3cd673e 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/TimelineUnassignedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/TimelineUnassignedIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -765,30 +852,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/UnassignedIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/UnassignedIssueEvent.php index 43dda318877..107822a1ea7 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/UnassignedIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/UnassignedIssueEvent.php @@ -267,10 +267,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -438,6 +435,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -934,30 +1021,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/UnlabeledIssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/UnlabeledIssueEvent.php index fe17ff6c5b7..9900d0b11aa 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/UnlabeledIssueEvent.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/UnlabeledIssueEvent.php @@ -266,10 +266,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -437,6 +434,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -612,30 +699,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunCompleted.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunCompleted.php index 7a876cc0de3..f7408f5d45c 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunCompleted.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunCompleted.php @@ -92,10 +92,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -263,6 +260,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -435,10 +522,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -606,6 +690,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1907,10 +2081,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2078,6 +2249,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4201,30 +4462,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4253,30 +4491,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4524,30 +4739,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunCreated.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunCreated.php index b20a6e0fa8a..98b029849b7 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunCreated.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunCreated.php @@ -92,10 +92,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -263,6 +260,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -435,10 +522,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -606,6 +690,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1907,10 +2081,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2078,6 +2249,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4201,30 +4462,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4253,30 +4491,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4524,30 +4739,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunRequestedAction.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunRequestedAction.php index 75f91a5747d..29c843ce46b 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunRequestedAction.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunRequestedAction.php @@ -93,10 +93,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -264,6 +261,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -436,10 +523,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -607,6 +691,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1908,10 +2082,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2079,6 +2250,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4212,30 +4473,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4264,30 +4502,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4535,30 +4750,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunRerequested.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunRerequested.php index 39ac623ae46..f2205279b0a 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunRerequested.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCheckRunRerequested.php @@ -92,10 +92,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -263,6 +260,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -435,10 +522,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -606,6 +690,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -1907,10 +2081,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2078,6 +2249,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4201,30 +4462,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4253,30 +4491,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", @@ -4524,30 +4739,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookDeploymentProtectionRuleRequested.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookDeploymentProtectionRuleRequested.php index f5313f64319..550373232fa 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookDeploymentProtectionRuleRequested.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookDeploymentProtectionRuleRequested.php @@ -389,10 +389,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -560,6 +557,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -6758,30 +6845,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentCreated.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentCreated.php index e211fe4fdfc..97e0e76f391 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentCreated.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentCreated.php @@ -128,10 +128,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -299,6 +296,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4087,30 +4174,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentCreated/Comment.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentCreated/Comment.php index 315a9985d5b..799678a2530 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentCreated/Comment.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentCreated/Comment.php @@ -112,10 +112,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -283,6 +280,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -577,30 +664,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentDeleted.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentDeleted.php index 47173ccb5d6..d4f7b5d2fb8 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentDeleted.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentDeleted.php @@ -123,10 +123,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -294,6 +291,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4080,30 +4167,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentEdited.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentEdited.php index a652d2cdcde..1838a417a6e 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentEdited.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookIssueCommentEdited.php @@ -142,10 +142,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -313,6 +310,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -4104,30 +4191,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobCompleted.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobCompleted.php index 061ca5e178a..41a08714342 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobCompleted.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobCompleted.php @@ -2586,10 +2586,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2757,6 +2754,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3309,30 +3396,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobInProgress.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobInProgress.php index 2c457f91dd2..786e0905352 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobInProgress.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobInProgress.php @@ -2624,10 +2624,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2795,6 +2792,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3347,30 +3434,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobQueued.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobQueued.php index 4072983f3f3..83d95b07078 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobQueued.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobQueued.php @@ -2447,10 +2447,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2618,6 +2615,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3170,30 +3257,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobWaiting.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobWaiting.php index 03c899ff19d..03328b9bf0d 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobWaiting.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookWorkflowJobWaiting.php @@ -2448,10 +2448,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -2619,6 +2616,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -3171,30 +3258,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhooksIssueComment.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhooksIssueComment.php index 08490b1755a..2dbe06e0fd9 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhooksIssueComment.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhooksIssueComment.php @@ -107,10 +107,7 @@ ] }, "owner": { - "anyOf": [ - { - "type": "null" - }, + "oneOf": [ { "title": "Simple User", "required": [ @@ -278,6 +275,96 @@ } }, "description": "A GitHub user." + }, + { + "title": "Enterprise", + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ], + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ], + "description": "A short description of the enterprise." + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/enterprises\\/octo-business" + ] + }, + "website_url": { + "type": [ + "string", + "null" + ], + "description": "The enterprise\'s website URL.", + "format": "uri" + }, + "id": { + "type": "integer", + "description": "Unique identifier of the enterprise", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the enterprise.", + "examples": [ + "Octo Business" + ] + }, + "slug": { + "type": "string", + "description": "The slug url identifier for the enterprise.", + "examples": [ + "octo-business" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-01-26T19:14:43Z" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri" + } + }, + "description": "An enterprise on GitHub." } ] }, @@ -571,30 +658,7 @@ "id": 37, "slug": "probot-owners", "node_id": "MDExOkludGVncmF0aW9uMQ==", - "owner": { - "name": "generated", - "email": "generated", - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", - "gravatar_id": "41d064eb2195891e12d0413f63227ea7", - "url": "https:\\/\\/api.github.com\\/users\\/octocat", - "html_url": "https:\\/\\/github.com\\/octocat", - "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", - "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", - "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", - "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", - "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", - "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", - "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", - "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", - "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", - "type": "User", - "site_admin": false, - "starred_at": "\\"2020-07-09T00:17:55Z\\"", - "user_view_type": "public" - }, + "owner": null, "name": "Probot Owners", "description": "The description of the app.", "external_url": "https:\\/\\/example.com", diff --git a/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php index 4aa352ce1f1..4824d7b1cf2 100644 --- a/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php @@ -157,7 +157,7 @@ function authHeader(): string assertType('Observable', $client->call('LIST /enterprises/{enterprise}/code-scanning/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/code_security_and_analysis')); assertType('', $client->call('PATCH /enterprises/{enterprise}/code_security_and_analysis')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/settings/billing/advanced-security')); assertType('', $client->call('POST /enterprises/{enterprise}/{security_product}/{enablement}')); @@ -306,7 +306,7 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/custom-repository-roles/{role_id}')); assertType('', $client->call('DELETE /orgs/{org}/custom-repository-roles/{role_id}')); assertType('', $client->call('PATCH /orgs/{org}/custom-repository-roles/{role_id}')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/public-key')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/{secret_name}')); @@ -675,8 +675,8 @@ function authHeader(): string assertType('', $client->call('DELETE /repos/{owner}/{repo}/contents/{path}')); assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/contributors')); assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/contributors')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/dependabot/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}')); assertType('', $client->call('GET /repos/{owner}/{repo}/dependabot/secrets')); diff --git a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml index bf97dec3f73..bd93280c977 100644 --- a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml @@ -12856,19 +12856,18 @@ paths: subcategory: members put: summary: Set organization membership for a user - description: "Only authenticated organization owners can add a member to the - organization or update the member's role.\n\n* If the authenticated user - is _adding_ a member to the organization, the invited user will receive an - email inviting them to the organization. The user's [membership status](https://docs.github.com/enterprise-server@3.13/rest/orgs/members#get-organization-membership-for-a-user) - will be `pending` until they accept the invitation.\n \n* Authenticated - users can _update_ a user's membership by passing the `role` parameter. If - the authenticated user changes a member's role to `admin`, the affected user - will receive an email notifying them that they've been made an organization - owner. If the authenticated user changes an owner's role to `member`, no email - will be sent.\n\n**Rate limits**\n\nTo prevent abuse, organization owners - are limited to creating 50 organization invitations for an organization within - a 24 hour period. If the organization is more than one month old or on a paid - plan, the limit is 500 invitations per 24 hour period." + description: Only authenticated organization owners can add a member to the + organization or update the member's role. If the authenticated user is _adding_ + a member to the organization, the invited user will receive an email inviting + them to the organization. The user's [membership status](https://docs.github.com/enterprise-server@3.13/rest/orgs/members#get-organization-membership-for-a-user) + will be `pending` until they accept the invitation. Authenticated users can + _update_ a user's membership by passing the `role` parameter. If the authenticated + user changes a member's role to `admin`, the affected user will receive an + email notifying them that they've been made an organization owner. If the + authenticated user changes an owner's role to `member`, no email will be sent. + The same rate limits as set on the appliance are applied to this endpoint. + Most commonly, you will hit the secondary rate limit (if configured) due to + CPU usage. tags: - orgs operationId: orgs/set-membership-for-user @@ -66729,6 +66728,72 @@ components: type: array items: type: string + enterprise: + title: Enterprise + description: An enterprise on GitHub. + type: object + properties: + description: + description: A short description of the enterprise. + type: + - string + - 'null' + html_url: + type: string + format: uri + examples: + - https://github.com/enterprises/octo-business + website_url: + description: The enterprise's website URL. + type: + - string + - 'null' + format: uri + id: + description: Unique identifier of the enterprise + type: integer + examples: + - 42 + node_id: + type: string + examples: + - MDEwOlJlcG9zaXRvcnkxMjk2MjY5 + name: + description: The name of the enterprise. + type: string + examples: + - Octo Business + slug: + description: The slug url identifier for the enterprise. + type: string + examples: + - octo-business + created_at: + type: + - string + - 'null' + format: date-time + examples: + - '2019-01-26T19:01:12Z' + updated_at: + type: + - string + - 'null' + format: date-time + examples: + - '2019-01-26T19:14:43Z' + avatar_url: + type: string + format: uri + required: + - id + - node_id + - name + - slug + - html_url + - created_at + - updated_at + - avatar_url integration: title: GitHub app description: GitHub apps are a new way to extend GitHub. They can be installed @@ -66754,9 +66819,9 @@ components: examples: - MDExOkludGVncmF0aW9uMQ== owner: - anyOf: - - type: 'null' + oneOf: - "$ref": "#/components/schemas/simple-user" + - "$ref": "#/components/schemas/enterprise" name: description: The name of the GitHub app type: string @@ -67179,72 +67244,6 @@ components: - repository_id - request - response - enterprise: - title: Enterprise - description: An enterprise on GitHub. - type: object - properties: - description: - description: A short description of the enterprise. - type: - - string - - 'null' - html_url: - type: string - format: uri - examples: - - https://github.com/enterprises/octo-business - website_url: - description: The enterprise's website URL. - type: - - string - - 'null' - format: uri - id: - description: Unique identifier of the enterprise - type: integer - examples: - - 42 - node_id: - type: string - examples: - - MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: - description: The name of the enterprise. - type: string - examples: - - Octo Business - slug: - description: The slug url identifier for the enterprise. - type: string - examples: - - octo-business - created_at: - type: - - string - - 'null' - format: date-time - examples: - - '2019-01-26T19:01:12Z' - updated_at: - type: - - string - - 'null' - format: date-time - examples: - - '2019-01-26T19:14:43Z' - avatar_url: - type: string - format: uri - required: - - id - - node_id - - name - - slug - - html_url - - created_at - - updated_at - - avatar_url integration-installation-request: title: Integration Installation Request description: Request to install an integration on a target