From f4ffcf5fbce0781faec40d8b5003ffb604df231b Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sat, 12 Jul 2025 20:49:36 -0500 Subject: [PATCH] docs: fix xml comments --- src/AnthropicClient/Models/CreateFileRequest.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/AnthropicClient/Models/CreateFileRequest.cs b/src/AnthropicClient/Models/CreateFileRequest.cs index 1d0fcf9..535c9a3 100644 --- a/src/AnthropicClient/Models/CreateFileRequest.cs +++ b/src/AnthropicClient/Models/CreateFileRequest.cs @@ -10,17 +10,17 @@ public class CreateFileRequest /// /// The file content as a byte array. /// - public byte[] File { get; } + public byte[] File { get; init; } /// /// The original filename of the file being uploaded. /// - public string FileName { get; } + public string FileName { get; init; } /// /// The MIME type of the file. /// - public string FileType { get; } + public string FileType { get; init; } /// /// Initializes a new instance of the class. @@ -28,7 +28,8 @@ public class CreateFileRequest /// The file content as a byte array. /// The original filename of the file being uploaded. /// The MIME type of the file. - /// Thrown when , , or is null. + /// Thrown when is null. + /// Thrown when or is null or whitespace. public CreateFileRequest(byte[] file, string fileName, string fileType) { ArgumentValidator.ThrowIfNull(file, nameof(file)); @@ -46,7 +47,8 @@ public class CreateFileRequest /// The stream containing the file content. /// The original filename of the file being uploaded. /// The MIME type of the file. - /// Thrown when , , or is null. + /// Thrown when is null. + /// Thrown when or is null or whitespace. public CreateFileRequest(Stream stream, string fileName, string fileType) { ArgumentValidator.ThrowIfNull(stream, nameof(stream));