RepoJournal
Spring

@spring-projects

Spring Framework, Spring Boot, and the JVM enterprise layer

Keep up with Spring in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Java Full archive →

The Wire · Showcase

SPRING AI FIXES JACKSON SERIALIZATION TRAP, FRAMEWORK TRIMS CRUFT

By RepoJournal · Filed · About Spring

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].

One email a day. Unsubscribe in one click.

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.

More from @spring-projects

Daily updates, in your inbox

Follow Spring

Keep up with Spring in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.