Skip to content

v1.3.1 — RFC 3339 timestamps

Choose a tag to compare

@phaller222 phaller222 released this 07 Aug 22:18
· 62 commits to main since this release

Patch release. Every format: date-time field now carries a UTC offset, as RFC 3339 — and therefore the published OpenAPI contract — requires.

The defect

The DTO boundary mixed two time types. Instant fields went on the wire correctly ("2026-08-20T10:00:00Z"), LocalDateTime fields lost the offset entirely ("2026-08-02T21:40:20.81039"). Generated clients map date-time to OffsetDateTime, so the offset-less half of the API could not be read at all:

  • GET /resources, /resources/{id}, /resources/status
  • GET /telemetry-rules/{id}, /task-schedules/{id}, /process-definitions
  • GET /documents/{id}/history

/users escaped only by accident — lastLogin is never set and dateOfBirth was null in the sample data.

The write direction was affected too: a client sending what its OffsetDateTime produces (+02:00) got a 400, while a Z was accepted and then silently discarded — a value changed meaning by travelling through the API.

The fix

The seven affected DTO fields now map to Instant through a new WireTime helper. Entities keep their LocalDateTime columns; there is no database change, and the server zone is the correct reading of the stored wall clock.

Compatibility

The published contract does not change. docs/openapi.json differs from 1.3.0 in exactly one line — info.version — and /v3/api-docs is byte-identical before and after the fix (83 paths, 51 schemas). The four released client libraries stay valid at 1.3.0 and need no regeneration.

Consumers that parsed the offset-less form as a local timestamp (a hand-written client, a script) will now see a trailing Z and should parse it as an instant.

Tests

479 green. Two new web-layer tests: one walks entire responses and fails on any timestamp that lost its offset — including nested DTOs — and one pins that both Z and a numeric offset round-trip to the same instant. Verified end to end with prioritize-java-client 1.3.0 against a running server.