Back to Blog

RIDDL 1.16.5 Released

RIDDL 1.16.5 is now available.

release riddl compiler

RIDDL 1.16.5 is now available. This release of the RIDDL compiler and language tooling includes the following changes:

What’s New

Release 1.16.5

Bug Fix: Assertion failure when formatting errors at end of input

Fixed an off-by-one bug in RiddlParserInput.annotateErrorLine that caused a require assertion failure (fail: 47350 >= 47351) when formatting validation errors whose location was at the very end of the source input.

The lineRangeOf method returned the start offset of the last line instead of data.length when the error’s endOffset was on or past the last line. This caused downstream require(end >= index.endOffset) to fail, resulting in a 500 error in services using RiddlLib.validateString (such as ossum-ai-api’s generate endpoint).

This was a runtime crash in the error formatting path — the validation itself succeeded, but calling .format on the resulting messages triggered the assertion.