Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrsongg committed Nov 19, 2024
1 parent ec4a1dd commit c01a7d9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@

namespace Amazon.Runtime.Internal.Transform
{
/// <summary>
/// The interface for unmarshalling a json error response.
/// </summary>
/// <typeparam name="T">The type to unmarshall.</typeparam>
/// <typeparam name="TJsonUnmarshallerContext">The json unmarshaller context</typeparam>
public interface IJsonErrorResponseUnmarshaller<T, TJsonUnmarshallerContext>
{
/// <summary>
///
/// The unmarshall method accepts a context, the error response and a StreamingUTf8JsonReader and returns the modeled exception.
/// </summary>
/// <param name="context">The JSON Unmarshaller context</param>
/// <param name="errorResponse">The error response</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Amazon.Runtime.Internal.Transform
public interface IJsonUnmarshaller<T, TJsonUnmarshallerContext>
{
/// <summary>
/// Given the current position in the JSON stream, extract a T
/// Given the current position in the JSON stream, extract a T.
/// </summary>
/// <param name="input">The JSON parsing context</param>
/// <param name="reader">The Utf8JsonReader in the System Text JSON namespace</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
using System.Text;

namespace Amazon.Runtime.Internal.Transform
{

/// <summary>
/// Constants used in JSON unmarshalling.
/// </summary>
public static class JsonConstants
{
public static ReadOnlySpan<byte> Utf8Bom => new byte[] { 0xEF, 0xBB, 0xBF };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace Amazon.Runtime.Internal.Transform
{
/// <summary>
/// First-pass unmarshaller for all errors
/// First-pass unmarshaller for all errors
/// </summary>
public class JsonErrorResponseUnmarshaller : IJsonUnmarshaller<ErrorResponse, JsonUnmarshallerContext>
{
Expand Down

0 comments on commit c01a7d9

Please sign in to comment.