Skip to content

Commit

Permalink
Mark optional properties as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldgray committed Mar 6, 2023
1 parent 62fe63b commit 0950ffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/IIIF/IIIF/Discovery/V1/OrderedCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class OrderedCollection : JsonLdBase, IService
/// This property is used to refer to a larger Ordered Collection, of which this Ordered Collection is part.
/// </summary>
[JsonProperty(Order = 11)]
public List<OrderedCollection> PartOf { get; set; }
public List<OrderedCollection>? PartOf { get; set; }

/// <summary>
/// A link to the first Ordered Collection Page for this Collection.
Expand Down
4 changes: 2 additions & 2 deletions src/IIIF/IIIF/Discovery/V1/OrderedCollectionPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class OrderedCollectionPage : JsonLdBase, IService
/// The Ordered Collection of which this Page is a part.
/// </summary>
[JsonProperty(Order = 11)]
public OrderedCollection PartOf { get; set; }
public OrderedCollection? PartOf { get; set; }

/// <summary>
/// A reference to the previous page in the list of pages.
Expand All @@ -38,7 +38,7 @@ public class OrderedCollectionPage : JsonLdBase, IService
/// A reference to the next page in the list of pages.
/// </summary>
[JsonProperty(Order = 21)]
public OrderedCollectionPage Next { get; set; }
public OrderedCollectionPage? Next { get; set; }

/// <summary>
/// The Activities that are listed as part of this page.
Expand Down

0 comments on commit 0950ffb

Please sign in to comment.