fix: maintain property order in BlogPost schema
.NET / Build & Test (push) Failing after 55s Details

This commit is contained in:
Oliver Booth 2024-03-02 04:17:45 +00:00
parent 25a73bce0f
commit 1946690bd9
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ internal sealed class BlogPost
[JsonPropertyName("updated"), JsonInclude, JsonPropertyOrder(6)]
public long? Updated { get; private set; }
[JsonPropertyName("url"), JsonInclude] public object Url { get; private set; } = null!;
[JsonPropertyName("url"), JsonInclude, JsonPropertyOrder(14)]
public object Url { get; private set; } = null!;
public static BlogPost FromBlogPost(IBlogPost post, IBlogPostService blogPostService,
bool includeContent = false)