All models used in PATCH verbs should have nullable fields

This commit is contained in:
Dillon Buchanan
2014-08-17 23:42:48 -04:00
committed by Brendan Forster
parent 8a9e828277
commit b18b47acde
20 changed files with 82 additions and 66 deletions
+3 -9
View File
@@ -7,18 +7,12 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ReleaseUpdate
{
public ReleaseUpdate(string tagName)
{
Ensure.ArgumentNotNullOrEmptyString(tagName, "tagName");
TagName = tagName;
}
public string TagName { get; private set; }
public string TagName { get; set; }
public string TargetCommitish { get; set; }
public string Name { get; set; }
public string Body { get; set; }
public bool Draft { get; set; }
public bool Prerelease { get; set; }
public bool? Draft { get; set; }
public bool? Prerelease { get; set; }
internal string DebuggerDisplay
{