amazon-ion / ion-schema-kotlin

A Kotlin reference implementation of the Ion Schema Specification.
https://amazon-ion.github.io/ion-schema/
Apache License 2.0
26 stars 14 forks source link

`TimestampPrecisionRange` needs to be reworked #270

Closed popematt closed 1 year ago

popematt commented 1 year ago

The problem is that the range can be constructed from a limited set of values, but the actual possible precision of a Timestamp consists of many more possible values.

E.g. 2023-05-26T16:28:46.25Z has a precision greater than second and less than millisecond, but the current way of modeling timestamp precision in the range has no way of expression "2 fractional second digits".