microsoft / microsoft/typespec

Should encoding define guidance when the serialization would loose precision

Open
#8,494 0 comments 1 reaction 0 assignees View on GitHub
compiler:core design:needed triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

For cases of duration serialized as seconds/milliseconds as integer do we want to provide a guidance on what should an emitter do if the value passed by the user has more precision.

In those cases we could say drop the extra precision/floor the value
We could also say that it is up to the emitter to make that decision as it shouldn't be relevant to the service api

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.