microsoft / microsoft/typespec
Should encoding define guidance when the serialization would loose precision
Open
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
Assessment
This issue has not been assessed yet.