Skip to content

Commit c76c1c4

Browse files
Make Color enum property nullable
1 parent 5023e2c commit c76c1c4

File tree

15 files changed

+15
-15
lines changed

15 files changed

+15
-15
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
}

Src/Notion.Client/Models/Blocks/ToDoBlock.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/ToggleBlock.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/Database/Properties/SelectProperty.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class SelectOption
3535
/// </summary>
3636
[JsonProperty("color")]
3737
[JsonConverter(typeof(StringEnumConverter))]
38-
public Color Color { get; set; }
38+
public Color? Color { get; set; }
3939
}
4040

4141
public class MultiSelectProperty : Property

Src/Notion.Client/Models/Database/RichText/RichTextBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public class Annotations
4343

4444
[JsonProperty("color")]
4545
[JsonConverter(typeof(StringEnumConverter))]
46-
public Color Color { get; set; }
46+
public Color? Color { get; set; }
4747
}
4848
}

Src/Notion.Client/Models/PropertyValue/StatusPropertyValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Data
3333
/// </summary>
3434
[JsonProperty("color")]
3535
[JsonConverter(typeof(StringEnumConverter))]
36-
public Color Color { get; set; }
36+
public Color? Color { get; set; }
3737
}
3838

3939
public enum Color

0 commit comments

Comments
 (0)