From 15f5ad49e7f41215c3b089cdfe3873182223ce2d Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Wed, 8 Jan 2025 22:32:36 -0600 Subject: [PATCH] fix: make correct properties nullable --- src/AnthropicClient/Models/MessageBatchResponse.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AnthropicClient/Models/MessageBatchResponse.cs b/src/AnthropicClient/Models/MessageBatchResponse.cs index b3c0a0e..925e713 100644 --- a/src/AnthropicClient/Models/MessageBatchResponse.cs +++ b/src/AnthropicClient/Models/MessageBatchResponse.cs @@ -33,7 +33,7 @@ public class MessageBatchResponse /// Gets the date and time when the batch ended. /// [JsonPropertyName("ended_at")] - public DateTimeOffset EndedAt { get; init; } + public DateTimeOffset? EndedAt { get; init; } /// /// Gets the date and time when the batch was created. @@ -51,19 +51,19 @@ public class MessageBatchResponse /// Gets the date and time when the batch was archived. /// [JsonPropertyName("archived_at")] - public DateTimeOffset ArchivedAt { get; init; } + public DateTimeOffset? ArchivedAt { get; init; } /// /// Gets the date and time when the batch cancellation was initiated. /// [JsonPropertyName("cancel_initiated_at")] - public DateTimeOffset CancelInitiatedAt { get; init; } + public DateTimeOffset? CancelInitiatedAt { get; init; } /// /// Gets the URL to the results of the batch. /// [JsonPropertyName("results_url")] - public string ResultsUrl { get; init; } = string.Empty; + public string? ResultsUrl { get; init; } = string.Empty; } ///