Repository navigation
Release 2.8.2
What's New
riddl 2.8.2 is a patch release. It contains two validation fixes that riddl-models asked for while
adopting 2.8.x. It is binary compatible with 2.8.1 (MiMa clean on all six modules). The BAST format
is unchanged, so .bast files written by 2.8.0 or 2.8.1 still load.
Bug Fixes
- A schedule's time zone must name a real zone. The
in "<zone>"of a calendar schedule
(every day at 04:00 in "America/Chicago") or acron "…" in "<zone>"was checked only by its
shape. AnyArea/Locationpassed, so a misspelt"America/Chicgo"or an invented
"Mars/Olympus"validated clean, and a generator would have treated the zone as unusable, or as
UTC.- The zone must now be an IANA time-zone id, as
java.time.ZoneId.ofaccepts it.Zand
offsets such as"+05:30"remain legal. - Anything else is a
value-time-zone-malformedError, reported at the string. - Zone ids are case-sensitive, as in Java. When only the letter case is wrong, the suggestion
names the correct spelling ("america/chicago"→"America/Chicago"). - The check is the same on the JVM, Scala.js and Scala Native. riddlc carries the list of 604
IANA zone names (tzdb 2025b), about 9KB with no zone rules, rather than the full time-zone
database, which is absent on JS and Native.
- The zone must now be an IANA time-zone id, as
value-literal-comparison-styleno longer flags zero. Writingwhen g.count > 0or
require total == 0no longer suggests replacing the0with a named constant. Zero is exempt
by value, so0.0and00are exempt too. Every other number in a comparison is still
flagged as before.
Internal
- New tests cover both fixes. A JVM-only drift test fails if the running JDK knows a time zone
that riddlc's bundled list lacks, so the list is regenerated rather than left stale. - The Computational Model now states that a generator may rely on every schedule zone it receives
being resolvable.