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
The discussion is from JS decimal support, for decimal type in typespec not every language has the native support or has the ability to handle any precision either calculation or serialization/deserialization.
So if the service team strongly cares about the precision of decimal it should use @encode to encode it as a string.
Here is the draft proposal:
model Widget {
@encode("decimalString") // ???
value: decimal;
}
The discussion is from JS decimal support, for decimal type in typespec not every language has the native support or has the ability to handle any precision either calculation or serialization/deserialization.
So if the service team strongly cares about the precision of decimal it should use @encode to encode it as a string.
Here is the draft proposal:
/cc @bterlson @timotheeguerin
The text was updated successfully, but these errors were encountered: