Skip to content

Commit

Permalink
PresentationType as string
Browse files Browse the repository at this point in the history
  • Loading branch information
p-kaczynski committed Sep 25, 2024
1 parent 5ec57f2 commit d7f9c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/IIIFPresentation/Models/API/Collection/FlatCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ public class FlatCollection : IIIF.Presentation.V3.Collection

public string? PublicId { get; set; }

public PresentationType PresentationType { get; set; }

[JsonRequired] public string? Slug { get; set; }

public string? Parent { get; set; }
Expand Down
4 changes: 3 additions & 1 deletion src/IIIFPresentation/Models/API/Collection/View.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace Models.API.Collection;

Expand All @@ -7,7 +8,8 @@ public class View
[JsonProperty("@id")]
public required string Id { get; set; }

[JsonProperty("@type")]
[JsonProperty("@type")]
[JsonConverter(typeof(StringEnumConverter))]
public PresentationType Type { get; set; }

public int Page { get; set; }
Expand Down

0 comments on commit d7f9c28

Please sign in to comment.