Skip to content

Commit d780a66

Browse files
committed
Comment
1 parent 9d44553 commit d780a66

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Grpc/JsonTranscoding/src/Microsoft.AspNetCore.Grpc.JsonTranscoding/GrpcJsonSettings.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ public sealed class GrpcJsonSettings
5454
/// The enum values above will be read and written as <c>UNKNOWN</c> and <c>OK</c> instead of <c>STATUS_UNKNOWN</c>
5555
/// and <c>STATUS_OK</c>.
5656
/// </para>
57+
/// <para>
58+
/// The Protobuf JSON specification requires enum values in JSON to match enum fields exactly.
59+
/// Enabling this option may reduce interoperability, as removing enum prefix might not be supported
60+
/// by other JSON transcoding implementations.
61+
/// </para>
62+
/// <para>
63+
/// For more information, see <see href="https://protobuf.dev/programming-guides/json/"/>.
64+
/// </para>
5765
/// </remarks>
5866
public bool RemoveEnumPrefix { get; set; }
5967
}

0 commit comments

Comments
 (0)