You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix built-in Guid and BigInteger serializer do not honor PackerCompatibilityOptions #270
This commit fixes a bug that built-in Guid and BigInteger serializer do not honor PackerCompatibilityOptions and always they as raw(str) type.
Note that PackBinary methods honor PackerCompatibilityOptions and output raw type header when PackBinaryAsRaw flag is specified.
Copy file name to clipboardExpand all lines: src/MsgPack/Serialization/DefaultSerializers/DefaultSerializers.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -320,7 +320,7 @@ public System_GuidMessagePackSerializer( SerializationContext ownerContext )
320
320
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1062:ValidateArgumentsOfPublicMethods",MessageId="0",Justification="Validated by caller in base class")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1062:ValidateArgumentsOfPublicMethods",MessageId="0",Justification="Validated by caller in base class")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1062:ValidateArgumentsOfPublicMethods",MessageId="0",Justification="Validated by caller in base class")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1062:ValidateArgumentsOfPublicMethods",MessageId="0",Justification="Validated by caller in base class")]
@@ -922,7 +922,7 @@ public System_Numerics_BigIntegerMessagePackSerializer( SerializationContext own
922
922
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1062:ValidateArgumentsOfPublicMethods",MessageId="0",Justification="Validated by caller in base class")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1062:ValidateArgumentsOfPublicMethods",MessageId="0",Justification="Validated by caller in base class")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1062:ValidateArgumentsOfPublicMethods",MessageId="0",Justification="Validated by caller in base class")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1062:ValidateArgumentsOfPublicMethods",MessageId="0",Justification="Validated by caller in base class")]
0 commit comments