Skip to content

Commit 6c4e614

Browse files
Merge pull request #304 from notion-dotnet/302-make-color-enum-property-nullable
Make color enum property nullable
2 parents 5023e2c + a7eef15 commit 6c4e614

File tree

16 files changed

+26
-18
lines changed

16 files changed

+26
-18
lines changed

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/PropertySchema/SelectOptionSchema.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ public class SelectOptionSchema
1010

1111
[JsonProperty("color")]
1212
[JsonConverter(typeof(StringEnumConverter))]
13-
public Color Color { get; set; }
13+
public Color? Color { get; set; }
1414
}
1515
}

Src/Notion.Client/Models/Blocks/BulletedListItemBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Info
1818

1919
[JsonProperty("color")]
2020
[JsonConverter(typeof(StringEnumConverter))]
21-
public Color Color { get; set; }
21+
public Color? Color { get; set; }
2222

2323
[JsonProperty("children")]
2424
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/CalloutBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class Info
2121

2222
[JsonProperty("color")]
2323
[JsonConverter(typeof(StringEnumConverter))]
24-
public Color Color { get; set; }
24+
public Color? Color { get; set; }
2525

2626
[JsonProperty("children")]
2727
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/HeadingOneBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class Info
2020

2121
[JsonProperty("color")]
2222
[JsonConverter(typeof(StringEnumConverter))]
23-
public Color Color { get; set; }
23+
public Color? Color { get; set; }
2424
}
2525
}
2626
}

Src/Notion.Client/Models/Blocks/HeadingThreeeBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class Info
2020

2121
[JsonProperty("color")]
2222
[JsonConverter(typeof(StringEnumConverter))]
23-
public Color Color { get; set; }
23+
public Color? Color { get; set; }
2424
}
2525
}
2626
}

Src/Notion.Client/Models/Blocks/HeadingTwoBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class Info
2020

2121
[JsonProperty("color")]
2222
[JsonConverter(typeof(StringEnumConverter))]
23-
public Color Color { get; set; }
23+
public Color? Color { get; set; }
2424
}
2525
}
2626
}

Src/Notion.Client/Models/Blocks/NumberedListItemBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Info
1818

1919
[JsonProperty("color")]
2020
[JsonConverter(typeof(StringEnumConverter))]
21-
public Color Color { get; set; }
21+
public Color? Color { get; set; }
2222

2323
[JsonProperty("children")]
2424
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/ParagraphBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Info
1818

1919
[JsonProperty("color")]
2020
[JsonConverter(typeof(StringEnumConverter))]
21-
public Color Color { get; set; }
21+
public Color? Color { get; set; }
2222

2323
[JsonProperty("children")]
2424
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/QuoteBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Info
1818

1919
[JsonProperty("color")]
2020
[JsonConverter(typeof(StringEnumConverter))]
21-
public Color Color { get; set; }
21+
public Color? Color { get; set; }
2222

2323
[JsonProperty("children")]
2424
public IEnumerable<INonColumnBlock> Children { get; set; }

Src/Notion.Client/Models/Blocks/TableOfContentsBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Data
1414
{
1515
[JsonProperty("color")]
1616
[JsonConverter(typeof(StringEnumConverter))]
17-
public Color Color { get; set; }
17+
public Color? Color { get; set; }
1818
}
1919
}
2020
}

0 commit comments

Comments
 (0)