octokit / octokit.net

A GitHub API client library for .NET

Home Page:https://octokitnet.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEAT]: Allow Nulls to be Passed to `BranchProtectionRequiredReviewsDismissalRestrictionsUpdate Constructor`

WesBossPro opened this issue · comments

Describe the need

Is there a reason BranchProtectionTeamCollection teams and BranchProtectionUserCollection users are not nullable?

Because I noticed when a bool is passed as false to the BranchProtectionRequiredReviewsDismissalRestrictionsUpdate constructor both BranchProtectionTeamCollection teams and BranchProtectionUserCollection users are simple set to null.

Wouldn't it just be easier to allow those properties to be nullable?

image

SDK Version

Octokit.net v9.1.0

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct