From 8d765acd42208fc78f48b7b2d34ec0a2f5ce2508 Mon Sep 17 00:00:00 2001 From: jsneedles Date: Tue, 14 Apr 2026 09:22:13 -0400 Subject: [PATCH] fix error details Adds reference ID to error details and makes the ValidationError shape correct --- Directory.Build.props | 2 +- src/HtmlCssToImage/Models/Results/ErrorDetails.cs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 56eea19..0c367ff 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 0.4.0 + 0.4.1 Code Happy, LLC Code Happy, LLC HTML/CSS To Image API diff --git a/src/HtmlCssToImage/Models/Results/ErrorDetails.cs b/src/HtmlCssToImage/Models/Results/ErrorDetails.cs index 68199c4..461cffe 100644 --- a/src/HtmlCssToImage/Models/Results/ErrorDetails.cs +++ b/src/HtmlCssToImage/Models/Results/ErrorDetails.cs @@ -23,6 +23,12 @@ public class ErrorDetails /// A list of validation errors that occurred during the request. /// [JsonPropertyName("validationErrors")] - public List ValidationErrors { get; set; } = []; + public ValidationError[]? ValidationErrors { get; set; } + + /// + /// A reference ID that can be used to track the error. + /// + [JsonPropertyName("referenceId")] + public string? ReferenceId { get; init; } } \ No newline at end of file