107 wires and counting
$ status: archived — this briefing has stopped; the archive stays readable. browse live briefings →

$ status

wire 2026-07-07
stories 18

© 2026 RepoJournal Home Showcase How it works Privacy

$ the-wire · showcase

SPRING AI FIXES JACKSON SERIALIZATION TRAP, FRAMEWORK TRIMS CRUFT

By RepoJournal · Filed · About Spring · Composed from the cited sources · methodology

Spring AI patches a critical serialization bug in OpenAI chat models where Optional-wrapped fields crash downstream drivers like Neo4j and MongoDB during metadata serialization.

The OpenAI Java SDK returns Optional-typed fields in AssistantMessage metadata, but Neo4j, MongoDB, and JDBC drivers can't serialize java.util.Optional [1]. Spring AI now unwraps these Optionals before passing them downstream, eliminating a footgun for production systems. Separately, Mistral AI's moderation endpoint can return null values in primitive fields, which Jackson 3's strict `FAIL_ON_NULL_FOR_PRIMITIVES` setting rejects outright [2]. The fix upgrades these to boxed types (Boolean and Double), a small change with big implications for anyone using content moderation. Spring Framework continues housekeeping with dependency bumps to Aalto 1.4, Gson 2.14, and Woodstox 7.2.1 [6], plus removal of deprecated SerializationUtils across the portfolio [4] [5]. PostgreSQL JDBC driver ticked to 42.7.13 across Spring Session [3].

Action items

References

  1. [1] Perform Optional unwrapping in OpenAiChatModel#buildGeneration ↗ spring-projects/spring-ai
  2. [2] Handle null fields in Mistral AI moderation `Categories` and `CategoryScores` ↗ spring-projects/spring-ai
  3. [3] Bump org.postgresql:postgresql from 42.7.12 to 42.7.13 ↗ spring-projects/spring-session
  4. [4] Add WelcomeController test, fix deprecated SerializationUtils, add Pe… ↗ spring-projects/spring-petclinic
  5. [5] Update due to deprecation warnings ↗ spring-projects/spring-framework
  6. [6] Upgrade to Aalto 1.4, Gson 2.14, Woodstox 7.2.1 ↗ spring-projects/spring-framework

Quick answers

What shipped in Spring on July 7, 2026?
Spring AI patches a critical serialization bug in OpenAI chat models where Optional-wrapped fields crash downstream drivers like Neo4j and MongoDB during metadata serialization. In total, 14 commits and 4 pull requests landed.
Who contributed to Spring on July 7, 2026?
2 developers shipped this update, including dependabot[bot] and Prajwalraut29.
What were the notable Spring updates?
Perform Optional unwrapping in OpenAiChatModel#buildGeneration, Handle null fields in Mistral AI moderation `Categories` and `CategoryScores`, and Bump org.postgresql:postgresql from 42.7.12 to 42.7.13.